-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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后只能下载0.6.1版本 #1830
Comments
换个镜像源,阿里源或者清华源都可以 |
使用阿里源,python使用3.10版本试试 |
感谢回答!如果是只能指定Tencent镜像的内网机器应该怎么办呢? |
在别的源把tx源缺的包下回来手动安装 |
运维的做法一般是先把别的源的依赖下载之后打成一个依赖镜像,然后你拿到这个依赖镜像去内网里面进行部署就可以了 |
带-gpu的就是gpu的版本 |
如果其他包都装好了,你装magic-pdf的时候可以不带[full],就不会要求你装cpu版的paddle了 |
不带[full]安装,然后不断pip需要的包,直到遇到了ERROR: Failed building wheel for simsimd的问题,follow https://github.com/opendatalab/MinerU/issues/1004运行了pip install -U magic-pdf[full,old_linux],结果又安回0.6.1了😭 ![]() |
直接下个离线版的paddlepaddle包先装上,再装full的magic-pdf呢 |
我的离线paddle是从这里https://www.paddlepaddle.org.cn/packages/stable/cu118/paddlepaddle-gpu/ 安装的,貌似只提供了gpu版本的。如上所述,安装3.0.0b1版本的paddlepaddle-gpu之后再装full的magic-pdf就还是会出现之前提到的错误
|
带gpu的跟不带gpu的是两个包,你要先装那个不带gpu的,你到阿里源直接下一个就好了 https://mirrors.aliyun.com/pypi/simple/ |
😭特别感谢,按你说的安了,但还是卡在simsimd了 ![]() |
卡simsimd就加oldlinux参数 |
是的,就是加了也卡
|
可能是环境已经脏了,建个新环境 |
emmm,为啥装的0.8.1 |
我看的某个issue,我试试能不能装更高的版本 |
🥹我这个模型是按照官方代码下载的模型且下载过程中没有中断,运行 File "/root/miniconda3/envs/Mineru/lib/python3.10/site-packages/urllib3/connection.py", line 198, in _new_conn TimeoutError: [Errno 110] Connection timed out The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/root/miniconda3/envs/Mineru/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPSConnection object at 0x7fd7969454e0>, 'Connection to api.github.com timed out. (connect timeout=None)') The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/root/miniconda3/envs/Mineru/lib/python3.10/site-packages/requests/adapters.py", line 667, in send urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.github.com', port=443): Max retries exceeded with url: /repos/ultralytics/assets/releases/tags/v8.3.0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fd7969454e0>, 'Connection to api.github.com timed out. (connect timeout=None)')) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/root/miniconda3/envs/Mineru/bin/magic-pdf", line 8, in
requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='api.github.com', port=443): Max retries exceeded with url: /repos/ultralytics/assets/releases/tags/v8.3.0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fd7969454e0>, 'Connection to api.github.com timed out. (connect timeout=None)')) |
模型没有正确下载导致的,按readme再走一遍模型下载的流程 |
我确实是按照官方步骤和代码下载的,下载过程中也没有报错就完成了。会不会是因为机器是离线的呢? |
离线怎么下载的模型? |
我在有网的机器上下载到离线机器挂载的盘上,我确定magic-pdf.json里的模型路径是对的 |
从报错来看肯定是模型没下载完全或路径有误,magic-pdf新老版本模型不完全兼容,doc只保证最新版部署可用。 |
Description of the bug | 错误描述
操作系统Linux x86_64,python=3.10,cuda12.。安装detectron2-0.6-cp310-cp310-linux_x86_64.whl后,执行pip install -U magic-pdf[full]只能下载到0.6.1的版本。
指定安装magic-pdf==0.8.1会报错如下
How to reproduce the bug | 如何复现
pip install -U magic-pdf[full]==0.8.1
Operating system | 操作系统
Linux
Python version | Python 版本
3.10
Software version | 软件版本 (magic-pdf --version)
No response
Device mode | 设备模式
cuda
The text was updated successfully, but these errors were encountered: