Skip to content
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

PP-OCRv3字符识别使用infer_rec.py和infer/predict_rec.py结果不一致 #11263

Open
Junliang-liu-kit opened this issue Nov 16, 2023 · 1 comment
Assignees
Labels

Comments

@Junliang-liu-kit
Copy link

请提供下述完整信息以便快速定位问题/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.

Copy link
Contributor

This issue is stale because it has been open for 90 days with no activity.

@github-actions github-actions bot added the stale label Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants