Repository navigation
Accuracy issues moving from AIMET-ONNX to SNPE DLC #4010
|
Hi AIMET team, I’m experiencing a big accuracy gap between the QDQ ONNX model exported (through the to_onnx_qdq()) and tested with onnxruntime, and the DLC I generate with SNPE using the I am trying to quantize a pose estimation model (Lite-HRNet) and I am visually evaluating the results on a set of images. Following the exact same pre and post processing steps I am getting almost identical results between the FP32 ONNX, the QDQ ONNX (produced by AIMET), and the FP16 converted DLC. But when I try the INT8 quantized DLC (converted using the .onnx and .encodings from AIMET) the results are way off. Here is the pipeline I’m following:
Things I have already tried
Questions
I have searched through existing discussions and issues, but most similar posts involve PyTorch models instead of ONNX or use QNN rather than SNPE for deployment; I have tried the suggestions from those threads without success, so I’m opening this new discussion. |
Replies: 4 comments 6 replies
|
Hi Petros Toupas (@ptoupas) - Thanks for reaching out to us. And apologies for a delayed response. |
|
So here is the support forums link for SNPE (Qualcomm Neural Processing SDK), QNN (Neural Network SDK), QAIRT etc. Note: Please don't use the above for AIMET questions. Just create discussion threads here for AIMET. |
|
Hi |
|
一模一样的问题,我这边是aimet-->qnn/qairt,目前已知问题是aimet和qnn算子覆盖不一致,aimet比如把(a+b)当成整体去量化,没什么掉点,但是到qnn,它可能拆成a+b两个op,然后精度崩了,但是至今我都没有搞定量化精度,及时在qnn阶段重新用数据跑ptq校准。真的很难受,这个工具还有人跟进吗? |
So here is the support forums link for SNPE (Qualcomm Neural Processing SDK), QNN (Neural Network SDK), QAIRT etc.
https://mysupport.qualcomm.com/supportforums/s/topic/0TO4V0000001XL9WAM/ai-sdks-tools
Note: Please don't use the above for AIMET questions. Just create discussion threads here for AIMET.