-
Notifications
You must be signed in to change notification settings - Fork 8k
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
报错 #24
Comments
需要设置PYTHONPATH环境变量 export PYTHONPATH=. |
export PYTHONPATH=.; |
使用sh脚本 报ModuleNotFoundError: No module named 'utility' |
需要先下载inference模型,确保下载 识别的inference模型 在inference/rec/目录下 |
下载了 不使用shell脚本直接命令行运行就可以 |
好的,我们会排查下问题 |
顺便问一下 ,可以跑在cpu上面吗 |
可以在CPU上运行,但是目前CPU上的结果与GPU有稍许diff,问题正在处理中 |
好的 运行在cpu上的命令能发一下吗 |
如果是跑CPU的inference,可以通过设置tools/infer/utility.py中的--use_gpu参数实现,如下:
注:CPU上效果偏差,正在紧急修复中 |
好的 谢谢 辛苦了 我先看看效果 再看看代码 |
CPU与GPU运行结果有diff的bug已修复,请拉取最新代码试下 |
* Fix nolocal naming * Fix `cb_resnet` as well
Traceback (most recent call last):
File "tools/infer/predict_system.py", line 15, in
import utility
File "PaddleOCR/tools/infer/utility.py", line 17, in
from ppocr.utils.utility import initial_logger
ModuleNotFoundError: No module named 'ppocr'
The text was updated successfully, but these errors were encountered: