-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
自行训练的模型 转inference后 rec识别准确度低 #4229
Comments
rec的yml参数 Optimizer: Architecture: Loss: PostProcess: Metric: Train: Eval: |
paddleOCR 代码内对齐的参数 |
你用predict_system是检测+识别,而infer_rec是纯识别。所以可能是加了检测模型才导致结果不对。用predict_rec跟infer_rec对比试试呢 |
用语句python tools/infer/predict_rec.py --image_dir="./try3/" --rec_model_dir="./inference/rec_ic" --rec_char_dict_path="./ppocr/utils/cchw_dict.txt" --rec_image_shape="3,32,100" 的确可能是检测的问题,但是用predict_system时,检测框选的是正确的。 Global: Architecture: Loss: Optimizer: PostProcess: Metric: Train: Eval: |
emmm这样的图片其实没有必要用检测模型,字基本占了整张图,去掉检测模型速度还更快 |
Since you haven't replied for more than 3 months, we have closed this issue/pr. |
#2470 问题下已经逐条排查过了,github上能搜到的#2080 #2782 #2873也都排查了
参数已对齐,检测还算准确,但是识别有很大问题
还有什么需要排查的点吗
举例来说:
python tools/infer/predict_system.py --image_dir="./try2/" --det_model_dir="./inference/db_mv3" --rec_model_dir="./inference/rec_ic" --use_angle_cls=false --rec_char_dict_path="./ppocr/utils/cchw_dict.txt" --rec_image_shape="3,32,100"
结果:
python tools/infer_rec.py -c configs/rec/rec_icdar15_train.yml -o Global.pretrained_model=./output/rec/ic15/best_accuracy Global.load_static_weights=false Global.infer_img=./try2/
结果:
./try2/20210926174943.pngsub_pic0_1.png 剩余期限 0.83949465
@LDOUBLEV
The text was updated successfully, but these errors were encountered: