Tool/software: Linux
hardware: AM5749 evm
software: ti-processor-sdk-linux-am57xx-evm-05.03.00.07
Error while import from onnx
TIDL returned with error code : -1038, refer to interface header file for error code details
Error at line: 1627 : in file src/tidl_tb.c, of function : test_ti_dl_ivison
My config file like this:
# Default - 0
randParams = 0
# 0: Caffe, 1: TensorFlow, 2: ONNX, Default - 0
modelType = 2
# 0: Fixed quantization By tarininng Framework, 1: Dyanamic quantization by TIDL, Default - 1
quantizationStyle = 1
# quantRoundAdd/100 will be added while rounding to integer, Default - 50
quantRoundAdd = 50
numParamBits = 8
inputNetFile = "./hod_mobilenet_adam.proto"
outputNetFile = "./tidl_net_hod_mobilenet_adam.bin"
outputParamsFile = "./tidl_params_hod_mobilenet_adam.bin"
inWidth = 112
inHeight = 112
inNumChannels = 1
rawSampleInData = 0
preProcType = 256
inMean = 0 0 0
inScale = 0.0039 0.0039 0.0039
sampleInData = "./hud.jpg"
tidlStatsTool = "eve_test_dl_algo_ref.out"
conv2dKernelType = 1 1 1 1 1 1 1 1 1 1 1 1 1
the error msg is:
root@am57xx-evm~#: ./tidl_model_import.out xie.txt
TF Model (Proto) File : ./hod_mobilenet_adam.proto
TIDL Network File : ./tidl_net_hod_mobilenet_adam.bin
TIDL Params File : ./tidl_params_hod_mobilenet_adam.bin
Pading Only supported in H and W axis
Pading Only supported in H and W axis
Pading Only supported in H and W axis
Pading Only supported in H and W axis
Pading Only supported in H and W axis
Number of original layers: 29
Number of layers after tidl_addInDataLayer: 30
Number of layers after tidl_sortLayersInProcOrder: 30
Number of layers after tidl_removeMergedLayersFromNet: 30
Number of layers after second tidl_removeMergedLayersFromNet: 12
Number of layers after third tidl_removeMergedLayersFromNet: 12
Num of Layer Detected : 12
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Num|TIDL Layer Name |Out Data Name |Group |#Ins |#Outs |Inbuf Ids |Outbuf Id |In NCHW |Out NCHW
|MACS |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
0|TIDL_DataLayer |0 | 0| -1| 1| x x x x x x x x | 0 | 0 0 0 0 | 1 1
112 112 | 0 |
1|TIDL_ConvolutionLayer |68 | 1| 1| 1| 0 x x x x x x x | 1 | 1 1 112 112 | 1 16
56 56 | 551936 |
2|TIDL_ConvolutionLayer |71 | 1| 1| 1| 1 x x x x x x x | 2 | 1 16 56 56 | 1 16
28 28 | 137984 |
3|TIDL_ConvolutionLayer |74 | 1| 1| 1| 2 x x x x x x x | 3 | 1 16 28 28 | 1 32
28 28 | 451584 |
4|TIDL_ConvolutionLayer |77 | 1| 1| 1| 3 x x x x x x x | 4 | 1 32 28 28 | 1 32
14 14 | 68992 |
5|TIDL_ConvolutionLayer |80 | 1| 1| 1| 4 x x x x x x x | 5 | 1 32 14 14 | 1 64
14 14 | 426496 |
6|TIDL_ConvolutionLayer |83 | 1| 1| 1| 5 x x x x x x x | 6 | 1 64 14 14 | 1 64
7 7 | 34496 |
7|TIDL_ConvolutionLayer |86 | 1| 1| 1| 6 x x x x x x x | 7 | 1 64 7 7 | 1 128
7 7 | 413952 |
8|TIDL_ConvolutionLayer |89 | 1| 1| 1| 7 x x x x x x x | 8 | 1 128 7 7 | 1 128
7 7 | 68992 |
9|TIDL_ConvolutionLayer |92 | 1| 1| 1| 8 x x x x x x x | 9 | 1 128 7 7 | 1 128
7 7 | 815360 |
10|TIDL_PoolingLayer |93 | 1| 1| 1| 9 x x x x x x x | 10 | 1 128 7 7 | 1 128
1 1 | 6272 |
11|TIDL_ConvolutionLayer |94 | 1| 1| 1| 10 x x x x x x x | 11 | 1 128 1 1 | 1 2
1 1 | 256 |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total Giga Macs : 0.0030
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Processing config file ./tempDir/qunat_stats_config.txt !
0, TIDL_DataLayer , 0, -1 , 1 , x , x , x , x , x , x , x , x , 0 , 0 , 0 , 0 , 0 , 1 , 1 , 112 , 112 ,
1, TIDL_ConvolutionLayer , 1, 1 , 1 , 0 , x , x , x , x , x , x , x , 1 , 1 , 1 , 112 , 112 , 1 , 16 , 56 , 56 ,
2, TIDL_ConvolutionLayer , 1, 1 , 1 , 1 , x , x , x , x , x , x , x , 2 , 1 , 16 , 56 , 56 , 1 , 16 , 28 , 28 ,
3, TIDL_ConvolutionLayer , 1, 1 , 1 , 2 , x , x , x , x , x , x , x , 3 , 1 , 16 , 28 , 28 , 1 , 32 , 28 , 28 ,
4, TIDL_ConvolutionLayer , 1, 1 , 1 , 3 , x , x , x , x , x , x , x , 4 , 1 , 32 , 28 , 28 , 1 , 32 , 14 , 14 ,
5, TIDL_ConvolutionLayer , 1, 1 , 1 , 4 , x , x , x , x , x , x , x , 5 , 1 , 32 , 14 , 14 , 1 , 64 , 14 , 14 ,
6, TIDL_ConvolutionLayer , 1, 1 , 1 , 5 , x , x , x , x , x , x , x , 6 , 1 , 64 , 14 , 14 , 1 , 64 , 7 , 7 ,
7, TIDL_ConvolutionLayer , 1, 1 , 1 , 6 , x , x , x , x , x , x , x , 7 , 1 , 64 , 7 , 7 , 1 , 128 , 7 , 7 ,
8, TIDL_ConvolutionLayer , 1, 1 , 1 , 7 , x , x , x , x , x , x , x , 8 , 1 , 128 , 7 , 7 , 1 , 128 , 7 , 7 ,
9, TIDL_ConvolutionLayer , 1, 1 , 1 , 8 , x , x , x , x , x , x , x , 9 , 1 , 128 , 7 , 7 , 1 , 128 , 7 , 7 ,
10, TIDL_PoolingLayer , 1, 1 , 1 , 9 , x , x , x , x , x , x , x , 10 , 1 , 128 , 7 , 7 , 1 , 128 , 1 , 1 ,
11, TIDL_ConvolutionLayer , 1, 1 , 1 , 10 , x , x , x , x , x , x , x , 11 , 1 , 128 , 1 , 1 , 1 , 2 , 1 , 1 ,
12, TIDL_DataLayer , 0, 1 , -1 , 11 , x , x , x , x , x , x , x , 0 , 1 , 2 , 1 , 1 , 0 , 0 , 0 , 0 ,
Layer ID ,inBlkWidth ,inBlkHeight ,inBlkPitch ,outBlkWidth ,outBlkHeight,outBlkPitch ,numInChs ,numOutChs ,numProcInChs,numLclInChs ,numLclOutChs,numProcItrs ,numAccItrs ,numHorBlock ,numVerBlock ,inB
lkChPitch,outBlkChPitc,alignOrNot
1 72 60 72 32 28 32 1 16 1 1 8 1 1 2 2
4320 896 1
2 72 60 72 32 28 32 1 1 1 1 1 1 1 1 1
4320 896 1
3 28 14 28 28 14 28 16 32 16 8 8 1 2 1 2
392 392 1
4 40 32 40 16 14 16 1 1 1 1 1 1 1 1 1
1280 224 1
5 14 14 14 14 14 14 32 64 32 16 32 1 2 1 1
196 196 1
6 40 18 40 16 7 16 1 1 1 1 1 1 1 1 1
720 112 1
7 7 7 7 7 7 7 64 128 64 32 32 1 2 1 1
49 49 1
8 9 9 9 7 7 7 1 1 1 1 1 1 1 1 1
81 49 1
9 7 7 7 7 7 7 128 128 128 32 32 1 4 1 1
49 49 1
TIDL returned with error code : -1038, refer to interface header file for error code details
Error at line: 1627 : in file src/tidl_tb.c, of function : test_ti_dl_ivison
End of config list found !
root@am57xx-evm~#