PaddleOCR 使用官方提供的训练模型进行推理infer_rec.py,推理异常(推理模型正常)

pokxtpni  于 2022-11-13  发布在  其他
关注(0)|答案(1)|浏览(215)

1.训练模型推理结果异常(infer_rec.py),推理模型推理正常(predict_rec),请问是什么原因导致?(已确认模型文件为官方下载,配置及字典文件严格对应)

通用识别模型推理:(采用官方训练模型,推理结果异常)
python3 tools/infer_rec.py -c configs/rec/ch_ppocr_v2.0/rec_chinese_common_train_v2.0.yml -o Global.pretrained_model=./best_accuracy Global.infer_img=test.jpg

繁体字模型推理:(采用官方训练模型,推理结果异常,已修改字典及配置文件)
python3 tools/infer_rec.py -c configs/rec/PP-OCRv3/multi_language/chinese_cht_PP-OCRv3_rec.yml -o Global.pretrained_model=./best_accuracy Global.infer_img=./test.jpg --rec_char_dict_path="./ppocr/utils/dict/chinese_cht_dict.txt"

igetnqfo

igetnqfo1#

文字结果错误,推理置信度均为0.001左右

相关问题