Replies: 1 comment
-
感谢你提供详细的信息!请问
指的是官方的推理模型没问题,但自训练的模型有问题吗? |
Beta Was this translation helpful? Give feedback.
0 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
更新:
目前定位到是训练模型导出为推理模型后,精度发生了变化
上图为训练模型推理结果
推理模型预测结果1(导出为静态图推理模型):
导出推理命令:
python export_model.py -c /root/pyProjcet/PaddleOCR3.1/PaddleOCR/configs/det/PP-OCRv3/PP-OCRv3_mobile_det.yml -o Global.checkpoints=/root/pyProjcet/PaddleOCR3.1/PaddleOCR/myTest/project1/test/train/Train/best_accuracy.pdparams Global.save_inference_dir=/root/pyProjcet/PaddleOCR3.1/PaddleOCR/myTest/project1/test/train/Train Global.export_with_pir=False
推理模型预测结果2(导出为动态图推理模型):
导出推理命令:
python export_model.py -c /root/pyProjcet/PaddleOCR3.1/PaddleOCR/configs/det/PP-OCRv3/PP-OCRv3_mobile_det_copy.yml -o Global.pretrained_model=/root/pyProjcet/PaddleOCR3.1/PaddleOCR/myTest/project1/test/train/Train/best_accuracy.pdparams Global.save_inference_dir=/root/pyProjcet/PaddleOCR3.1/PaddleOCR/myTest/project1/test/train/Train
原问题:
版本:paddleocr==3.1 paddlepaddle-gpu==3.1.0 PPOCR-v3_mobile_det.yml
onnxruntime推理
openvino推理
本次训练期望结果为使用 best_accuracy.pdparams 推理后的结果
疑惑:
1. 如题:将推理模型导出为 IR/onnx 后,推理结果 与 best_accuracy.pdparams 定位结果不一致;
2. 使用官网提供的推理模型,直接导出为 onnx / IR,与使用官网提供的训练模型,再导出 onnx / IR,定位结果一致;
3. 使用paddleocr==2.6版本(其余的版本没有测试),使用无论是重新训练或者使用官网提供的预训练模型进行推理,IR/onnx 定位结果与使用 best_accuracy.pdparams 推理结果一致。
训练cfg
推理/导出命令
// 训练
// 用训练模型进行推理
// 将 训练模型 导出为 推理模型
// 使用推理模型导出onnx
// 导出 IR 模型
期待回复,万分感激
Beta Was this translation helpful? Give feedback.
All reactions