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

请问一下paddlepaddle==3.0.0b2和paddle-custom-npu==3.0.0b2应该使用那个版本的paddleocr以及paddleclas #1503

Open
Stefan3Zz opened this issue Dec 5, 2024 · 5 comments
Assignees

Comments

@Stefan3Zz
Copy link

请问一下我在昇腾NPU 910b上想使用paddleocr,我的paddlepaddle==3.0.0b2 -i https://www.paddlepaddle.org.cn/packages/stable/cpu/,以及paddle-custom-npu==3.0.0b2 -i https://www.paddlepaddle.org.cn/packages/stable/npu/ 是上述版本的,我需要安装paddleocr和paddleclas,应该安装什么版本的,我目前安装的是"paddleocr=2.9.1",paddleclas=2.6.0,在这个版本下一但加载paddleOcr,把use_npu=True这个参数加上,就会在加载的时候报错,我的报错记录在图片里,以及我加载模型的方式,希望大佬们解答一下
20241205-160820
20241205-160824
当我把use_npu=True 去掉的时候,是可以正常运行的,但是ocr一张图片耗时要39s左右,所以我不确定是否在npu上运行了,
当我执行这段代码的时候python -c "import paddle_custom_device; paddle_custom_device.npu.version()"
是正常的返回,如下图
image

@Stefan3Zz
Copy link
Author

有人帮我解答一下吗,这个问题对我来说真的很重要

@onecatcn
Copy link

onecatcn commented Dec 7, 2024

感谢你的提问,我找一下。

@Stefan3Zz
Copy link
Author

@onecatcn 请问有结果了吗

@onecatcn
Copy link

onecatcn commented Dec 7, 2024

推荐基于paddlex来使用吧,paddlex安装的版本都是验证过的

@onecatcn
Copy link

onecatcn commented Dec 7, 2024

@Stefan3Zz 我发现同事已经在 issue-69979中回复你了,建议在那个issue中继续讨论

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants