量化训练 #16437
Replies: 9 comments
-
这个只是警告,有无完整报错日志? |
Beta Was this translation helpful? Give feedback.
-
并未出现报错,只是有警告,想确定警告是否影响精度。 |
Beta Was this translation helpful? Give feedback.
-
可以正常训练,paddle推理模型也可以正常推理,使用以下命令转为onnx模型后,模型无法检测和识别任何东西。 导出模型时出现了算子警告,但是可以成功导出: 模型推理效果如下: |
Beta Was this translation helpful? Give feedback.
-
Paddle2ONNX 本身不依赖其他组件,但是我们建议您在以下环境下使用 Paddle2ONNX : PaddlePaddle == 2.6.0 |
Beta Was this translation helpful? Give feedback.
-
按照您说的,我修改了对应的版本,算子警告没有了但是依然推理不出结果 |
Beta Was this translation helpful? Give feedback.
-
麻烦确认下导出onnx之前的静态图模型是否可以正常推理出结果 |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
那就是在导出静态图时使用的权重与模型不匹配,需要检查下是否使用正确的模型和配置文件 |
Beta Was this translation helpful? Give feedback.
-
您好,目前静态图推理没有任何问题,推理结果也是对的,导出模型onnx模型之后,仍然是没有任何结果 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
🔎 Search before asking
🐛 Bug (问题描述)
在进行量化训练时,ppocrv3进行检测量化训练和识别量化模型时都出现的参数不匹配的现象,PaddleOCR为2.8.0版本
python3 deploy/slim/quantization/quant.py -c configs/det/ch_PP-OCRv3/ch_PP-OCRv3_det_student.yml
🏃♂️ Environment (运行环境)
paddleocr:2.8.1
paddlepaddle-gpu:2.6.1
🌰 Minimal Reproducible Example (最小可复现问题的Demo)
python3 deploy/slim/quantization/quant.py -c configs/det/ch_PP-OCRv3/ch_PP-OCRv3_det_student.yml
Beta Was this translation helpful? Give feedback.
All reactions