Paddleocr3.0是否可以用cpu运行? #15493
-
我是刚入门的小白,paddlepaddle安装的为3.0的cpu版本,pip安装完3.0的paddleocr后,运行paddleocr报错ValueError: invalid literal for int() with base 10: "NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running. This can also be happening if non-NVIDIA GPU is running,想问问大家是否是因为新版本的原因无法使用cpu进行ocr识别呢? |
Beta Was this translation helpful? Give feedback.
Answered by
liuhongen1234567
May 29, 2025
Replies: 1 comment 3 replies
-
您好,paddleocr3.0是可以在CPU上使用的,可以给出具体的报错信息和复现命令吗?这个报错看上去像是您的cuda、cudnn和驱动不匹配。 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
您好,这确实这版代码对于cpu环境处理的bug,不过wheel包已经打好了,只能下一版再修了。可以cd 到 这个文件里"C:\Users\15570\anaconda3\envs\paddle33\Lib\site-packages\paddlex\inference\utils\pp_option.py", 找到 line 103 里
device_type, device_ids = parse_device(get_default_device()) 这行代码,把它注释掉,然后替换为 device_type, device_ids ="cpu", None, 具体如图所示,