PaddleOCR
PaddleOCR copied to clipboard
PP-OCRv3字符识别使用infer_rec.py和infer/predict_rec.py结果不一致
请提供下述完整信息以便快速定位问题/Please provide the following information to quickly locate the problem
- 系统环境/System Environment:Win10+cuda11.2
- 版本号/Version:Paddle:paddlepaddle-gpu 2.4.2.post112 PaddleOCR:paddleocr-release-2.6 问题相关组件/Related components:.\configs\rec\PP-OCRv3\en_PP-OCRv3_rec.yml + .\tools\infer_rec.py
- 运行指令/Command Code: python tools/infer_rec.py -c configs/rec/PP-OCRv3/en_PP-OCRv3_rec.yml -o Global.checkpoint=./output/v3_en_mobile/best_accuracy Global.infer_img=./images_DClabel/image_rec/test
python tools/infer/predict_rec.py --image_dir=./images_DClabel/image_rec/test --rec_model_dir=./inference/v3_en_mobile --rec_char_dict_path=./ppocr/utils/numbers.txt
- 完整报错/Complete Error Message: 使用了自己的数据集和字符集训练数字识别。模型训练和评价结果正常(acc>90%), 使用相同图片在.\toolsinfer_ec.py测试时结果异常(输出结果错误,准确率极低<0.1), 但使用export_model.py导出inference模型并使用相同图片在.\tools\infer\predict_rec.py结果又正常了(结果基本正确,acc>90%) 想知道是哪里出了问题
我们提供了AceIssueSolver来帮助你解答问题,你是否想要它来解答(请填写yes/no)?/We provide AceIssueSolver to solve issues, do you want it? (Please write yes/no):
请尽量不要包含图片在问题中/Please try to not include the image in the issue.