Post Quantization Model Runs on iMX93 NPU, but Output is Incorrect

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Post Quantization Model Runs on iMX93 NPU, but Output is Incorrect

250 次查看
Skramer
Contributor I

I am working with a custom implementation of MobileNet designed to do binary classification on sparks. After converting to tflite and quantizing it to int8, the model runs on the NPU as expected, but the output does not make sense. The model had good accuracy before quantization, but the int8 outputs seem to be totally random. After testing on some of the training data, frames that should be positive are ranging from -128 to 127, and so are frames that should have been negative. Am I misinterpreting the output, or did something go wrong while converting or quantizing the model?

0 项奖励
回复
5 回复数

198 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

Please provide the model and which BSP are you testing?

Regards

0 项奖励
回复

144 次查看
Skramer
Contributor I

Hello,

I have attached the model. The BSP is Linux BSP. 

Thanks

0 项奖励
回复

134 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Your model can run with the latest BSP, it uses GPU besides the performance it run very well, I can not see any error.

 

Regards 

0 项奖励
回复

132 次查看
Skramer
Contributor I

Would you mind sharing the script you used to successfully run it? Perhaps I have written my script incorrectly.

Thanks

0 项奖励
回复

106 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Here is attached!!

Regards

0 项奖励
回复