ONNX转OM,遇到Bond报错和量化参数警告
收藏回复举报
ONNX转OM,遇到Bond报错和量化参数警告
t('forum.solved') 已解决
新人帖
发表于2024-07-23 15:55:50
0 查看

转换命令:

 atc --model=/home/icey/test/image_111112241_001.onnx --framework=5 --input_shape='raw0_data:1280,1080;raw1_data:1280,1080;parameter_0:32;parameter_1:32' --output=/home/icey/test/out_om/output_om41001_sim --image_list="raw0_data:/home/icey/test/raw0_data_f32000.txt;raw1_data:/home/icey/test/raw1_data_f32000.txt;parameter_0:/home/icey/test/parameter_0_f32000.txt;parameter_1:/home/icey/test/parameter_1_f32000.txt" --soc_version=Hi3519DV500

部分代表性的报错:

begin net quantization(CPU).... 

[WARN][Fp32ToFp16][67] Fp32ToFp16: Value[451354.250000] overflow 

end net quantization....

begin bandwidth optimize .... 

[ERROR][GetOutBondType][75] bond change only support bond4/bond8/bond16, not support c0x:0x8 c0:0x1 

[ERROR][GetOutBondMode][321] Run failed, error code 0x00000001. 

[ERROR][GenLogicPara][47] Run failed, error code 0x00000001. 

[ERROR][VarchInstBase][312] Run failed, error code 0x00000001. 

[ERROR][StartInst][75] Run failed, error code 0x00000001. 

[ERROR][Start][46] Run failed, error code 0x00000001. 

[ERROR][Start][41] Run failed, error code 0x00000001. 

[ERROR][Vsltc][207] Run failed, error code 0x00000001. 

[ERROR][RunPipeCalc][1038] Run failed, error code 0x00000001. 

[ERROR][CalcOneBlock][860] Run failed, error code 0x00000001. 

[ERROR][ProcessOneBlock][1082] Run failed, error code 0x00000001. 

[ERROR][DataBlockLoopEnd][491] Run failed, error code 0x00000001.

begin parameter generating.... 

end parameter generating 

[WARN][CheckLtpParamRange][1559] Op[/Sub_17] quantize params abs value(1.817600e+06) should in range [5.960000e-08, 1.310080e+05]. 

[WARN][CheckLtpParam][1580] Op[/Sub_17] Data Scale[0.000070] Offset[-128.000000] Min[0.000000] Max[3622005.750000] 

Weight[0] Scale[1.000000] Min[-1.280000e+02] Max[1.270000e+02]

[WARN][CheckFactor][1606] Op[/Mul_58] input_1 quantize params alpha(1.467952e+07) is greater than 131008, clip to 131008. 

[WARN][CheckFactor][1606] Op[/Mul_61] input_1 quantize params alpha(1.467952e+07) is greater than 131008, clip to 131008.

全部报错详见附件txt。

非常需要帮助,谢谢!!(wwwwwww

我要发帖子