Forums - Same Quantized model with different result between caffe and tensorflow

3 posts / 0 new
Last post
Same Quantized model with different result between caffe and tensorflow
lvxiangxiang
Join Date: 28 Dec 18
Posts: 4
Posted: Sun, 2019-01-06 22:27

Hi,

I used the snpe-dlc-quantize tools to quantize a Caffe model MobilenetV1 and ran it on dsp,result was same as cpu.But when I quantized the same Tensorflow model ,dsp result was wrong.I know quantization may decrease result accuracy,but what's the difference between caffe and tf?

thanks!

  • Up0
  • Down0
gesqdn-forum
Join Date: 4 Nov 18
Posts: 69
Posted: Tue, 2019-02-19 06:19

Hi lvxiangxiang,
DSP takes only quantized model in SNPE, and Non-quantized are used by  CPU/GPU. If you are using Quantized model for CPU/GPU it will dequantize the model. Similarly vice versa for the DSP. According to the Caffe and Tensorflow, They have their own layers implementation in the framework, so because of that result may vary.

  • Up0
  • Down0
lvxiangxiang
Join Date: 28 Dec 18
Posts: 4
Posted: Thu, 2019-02-21 19:13

thank you for your reply!

So is there any way to solve the problem that quantized tf mobilenet model has really low accuracy?And,have anyone tried it and result?

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.