PP-OCRv3字符识别使用infer_rec.py和infer/predict_rec.py结果不一致 #12927
Unanswered
Junliang-liu-kit
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
请提供下述完整信息以便快速定位问题/Please provide the following information to quickly locate the problem
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
使用了自己的数据集和字符集训练数字识别。模型训练和评价结果正常(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.
Beta Was this translation helpful? Give feedback.
All reactions