This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA4VM: model quantization accuracy loss

Part Number: TDA4VM

448*448 model quantization accuracy loss


1.Use quantization files

modelType          = 2
numParamBits = 8
numFeatureBits     = 8
quantizationStyle = 2
inputNetFile       = "/root/model/zhurh_yolo/model/2_stage/20220114_two_stage/export_ssd_2stage448.onnx"
outputNetFile     = "/root/model/zhurh_yolo/model/2_stage/20220114_two_stage/out/tidl_net_448_Reg.bin"
outputParamsFile   = "/root/model/zhurh_yolo/model/2_stage/20220114_two_stage/out/tidl_io_448_Reg_"
inDataNorm = 1
inMean = 128 128 128
inScale = 0.0078125 0.0078125 0.0078125
inDataFormat = 0
inWidth = 448
inHeight = 448
inNumChannels = 3
numFrames = 100
inData = /root/model-8.0/model/Front_Detect_model/dra_imgs/dra_image_list_dra_448.txt
postProcType = 1
#perfSimConfig = ../../test/testvecs/config/import/perfsim_base.cfg

2.Use environment

model : v0.63

SDK: 8.0

3.problem phenomenon

PC:

PC

Emulator:

Describe:

Before quantization, the model locates the front and rear target boxes with accurate accuracy, but after quantization, the model has large deviations in the front and rear target boxes.