-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
RuntimeError: (NotFound) Cannot open file .paddleocr/2.0/det/inference.pdmodel, please confirm whether the file is normal. #1964
Comments
已解决。C盘.paddleocr目录下的模型文件是第一次运行时下载下来的,不知道在程序里为什么会报这个错误。 在utility.py里自己指定model_dir为自己下载并解压的模型文件路径就好了。 if mode == "det":
# model_dir = args.det_model_dir
model_dir = 'E:/PaddleOCR/inference/ch_ppocr_mobile_v2.0_det_infer'
elif mode == 'cls':
# model_dir = args.cls_model_dir
model_dir = 'E:/PaddleOCR/inference/ch_ppocr_mobile_v2.0_cls_infer'
else:
# model_dir = args.rec_model_dir
model_dir = 'E:/PaddleOCR/inference/ch_ppocr_mobile_v2.0_rec_infer' 其中 |
好的,不建议使用带中文的文件路径哈 |
你好,这个utility.py文件是在哪里的?我在环境中好像没找到这个 |
为什么还是报错啊 |
同问 |
@JunLei01 @lingchen-xn |
@ZY945 这个文件里修改路径----指的是模型的路径,修改时注意缩进和是否需要防止转义 |
解决了。中文路径有影响,还需要在代码中更改绝对路基 |
解决办法有用,感谢,另外用google搜索才第一条搜出来的,百度真垃圾 |
为什么中国人开发的开源模型,会对中文路径支持不做优化呢?费解 |
|
这个问题卡了一天,就是中文路径的问题,编译后的程序改全英文路径后OK了 |
大佬们,为什么我按上述修改了下载路径,仍然报错,只能修改用户名了吗 |
windows + anaconda下,PaddleOCR可以运行成功,可以识别单张图片和图像集合。但是运行
python PPOCRLabel.py --lang ch
,就报错:C:\Users\徐仕成/.paddleocr/2.0/det/inference.pdmodel
这个文件是存在的。The text was updated successfully, but these errors were encountered: