-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
onnx模型使用paddlelit opt量化后推理结果错误,windows x86平台 #10612
Comments
请贴上opt工具转后的详细报错日志。onnx模型需要通过X2Paddle工具转成PadddlePaddle模型后,在用opt工具转成优化模型推理。详细过程见https://www.paddlepaddle.org.cn/lite/v2.12/quick_start/tutorial.html 。关于量化部分也可以参考 https://www.paddlepaddle.org.cn/lite/v2.12/user_guides/quant_aware.html 。 |
推理脚本: paddlelite: |
大概率是这个模型量化后,量化层存在数值溢出的问题,可以尝试打印出未量化下该层的输入输出,确定其数值是否在量化后精度内。 |
使用https://github.com/[AnthonyF333/PFLD_GhostOne](https://github.com/AnthonyF333/PFLD_GhostOne)中的onnx人脸关键点检测onnx模型,使用paddlelit opt量化后推理结果错误,但通过paddleslim量化,不量化matmul_v2推理结果没有问题,量化matmul_v2后推理结果仍有问题。
The text was updated successfully, but these errors were encountered: