Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detectron2在Linux aarch64上不支持 #1096

Open
2384441037 opened this issue Nov 26, 2024 · 6 comments
Open

Detectron2在Linux aarch64上不支持 #1096

2384441037 opened this issue Nov 26, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@2384441037
Copy link

Description of the bug | 错误描述

我想在我的服务器上运行minerU,但是detectron2没有支持aarch64的wheel,我怎么才能解决这个问题

How to reproduce the bug | 如何复现

先执行
conda create -n MinerU python=3.10
conda activate MinerU
pip install -U magic-pdf[full] --extra-index-url https://wheels.myhloli.com -i https://mirrors.aliyun.com/pypi/simple
接着下载模型
然后运行magic-pdf pdf-command --pdf "demo1.pdf" --inside_model true
命令能执行成功,应该是因为demo里面存在demo1.json文件。
但是我执行magic-pdf pdf-command --pdf "nnU-net.pdf" --inside_model true就发生错误。
image
我怎么才能在aarch64上安装detectron2

Operating system | 操作系统

Linux

Python version | Python 版本

3.10

Software version | 软件版本 (magic-pdf --version)

0.7.x

Device mode | 设备模式

cpu

@2384441037 2384441037 added the bug Something isn't working label Nov 26, 2024
@myhloli
Copy link
Collaborator

myhloli commented Nov 26, 2024

可以尝试自己通过clone此仓库并通过源码编译安装:
https://github.com/facebookresearch/detectron2

@2384441037
Copy link
Author

@myhloli
cd detectron2
python setup.py build develop
这样吗

@myhloli
Copy link
Collaborator

myhloli commented Nov 26, 2024

@myhloli cd detectron2 python setup.py build develop 这样吗

python -m pip install 'git+https://github.com/facebookresearch/detectron2.git'
# (add --user if you don't have permission)

# Or, to install it from a local clone:
git clone https://github.com/facebookresearch/detectron2.git
python -m pip install -e detectron2

@2384441037
Copy link
Author

@myhloli cd detectron2 python setup.py build develop 这样吗

python -m pip install 'git+https://github.com/facebookresearch/detectron2.git'
# (add --user if you don't have permission)

# Or, to install it from a local clone:
git clone https://github.com/facebookresearch/detectron2.git
python -m pip install -e detectron2

谢谢,我去试一下

@2384441037
Copy link
Author

@myhloli cd detectron2 python setup.py build develop 这样吗

python -m pip install 'git+https://github.com/facebookresearch/detectron2.git'
# (add --user if you don't have permission)

# Or, to install it from a local clone:
git clone https://github.com/facebookresearch/detectron2.git
python -m pip install -e detectron2

image
安装成功了,版本显示的0.6,但是实际运行命令行还是会报错,这是为什么呢

@myhloli
Copy link
Collaborator

myhloli commented Nov 26, 2024

再执行一遍

pip install -U magic-pdf[full] --extra-index-url https://wheels.myhloli.com/ -i https://mirrors.aliyun.com/pypi/simple

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants