Hi,
I am trying to import BiSeNet model, but even after converting them from PyTorch to ONNX (opset_ver = 11 , there is no way to downgrade the opset_ver of the model below 11), importing them using the import tool gives me some form of error. Error log has shown below.
1) What is the reason for the import error shown in the log? How can I debug it?
2) Why did the "find Indata for data ID" lines appear when importing? ID refers to a layer? If so, how can I make a comparison with the architecture in the ONNX model?
3) Is the error related to the lack of Sigmoid layer in TIDL?
4) Is there any documentation for implementing custom layers for TIDL, other than the source code example at path psdk_rtos_auto_j7_07_00_00_11/tidl_j7_01_02_00_09/ti_dl/custom?
5) How do I update the SDK (PSDKLA & PSDKLA) to 20th Nov release? Should I delete the SDK folders and perform a clean install?
Error log:
nikita@VERBITSKY-N:~/psdk_rtos_auto_j7_07_00_00_11/tidl_j7_01_02_00_09/ti_dl/utils/tidlModelImport$ ./out/tidl_model_import.out /home/nikita/Work/TDA4/tidl_bisenet/tidl_configs/tidl_import_bisenet.txt
ONNX Model (Proto) File : /home/nikita/Work/TDA4/tidl_bisenet/snapshot/qat_model4.onnx
TIDL Network File : /home/nikita/Work/TDA4/tidl_bisenet/tidl_models/onnx/tidl_net_qat_model4.bin
TIDL IO Info File : /home/nikita/Work/TDA4/tidl_bisenet/tidl_models/onnx/tidl_io_qat_model4_
Current ONNX OpSet Version : 11
ONNX operator Sigmoid is not suported now.. By passing
ONNX operator Sigmoid is not suported now.. By passing
ONNX operator Sigmoid is not suported now.. By passing
Could not find Indata for data ID 36
Could not find Indata for data ID 47
Could not find Indata for data ID 60
~~~~~Running TIDL in PC emulation mode to collect Activations range for each layer~~~~~
Processing config file #0 : /home/nikita/Work/TDA4/tidl_bisenet/tidl_models/onnx/tidl_import_bisenet.txt.qunat_stats_config.txt
Algorithm Init failed with error number: -1000
Error at line: 705 : in file src/tidl_tb.c, of function : tidlMultiInstanceTest
Error Type: TIDL_E_CONV_INVALID_INPUT_WIDTH
****************************************************
** All the Tensor Dimensions has to be greater then Zero
** DIM Error - For Tensor 45, Dim 2 is 0
****************************************************
Segmentation fault (core dumped)
WARNING: [TIDL_ResizeLayer] Resize_113 Resize kernel with non-power of 2 resize ratio is not optimal.
WARNING: [TIDL_ResizeLayer] Resize_142 Resize kernel with non-power of 2 resize ratio is not optimal.
WARNING: [TIDL_ResizeLayer] Resize_174 Resize kernel with non-power of 2 resize ratio is not optimal.
INFORMATION : Any resize ratio which is power of 2 and greater than 4 will be placed by combination of 4x4 resize layer and 2x2 resize layer
INFORMATION : Example a 8x8 resize will be replaced by 4x4 resize followed by 2x2 resize
INFORMATION : Any resize ratio which is power of 2 and greater than 4 will be placed by combination of 4x4 resize layer and 2x2 resize layer
INFORMATION : Example a 8x8 resize will be replaced by 4x4 resize followed by 2x2 resize
ERROR : [TIDL_E_QUANT_STATS_NOT_AVAILABLE] tidl_quant_stats_tool.out fails to collect dynamic range. Please look into quant stats log. This model will get fault on target.
WARNING: [TIDL_E_DATAFLOW_INFO_NULL] ti_cnnperfsim.out fails to allocate memory in MSMC. Please look into perfsim log. This model can only be used on PC emulation, it will get fault on target.
****************************************************
** 4 WARNINGS 1 ERRORS **
****************************************************
File import model config: tidl_import_bisenet.txt
modelType = 2
inputNetFile = "/home/nikita/Work/TDA4/tidl_bisenet/snapshot/qat_model4.onnx"
outputNetFile = "/home/nikita/Work/TDA4/tidl_bisenet/tidl_models/onnx/tidl_net_qat_model4.bin"
outputParamsFile = "/home/nikita/Work/TDA4/tidl_bisenet/tidl_models/onnx/tidl_io_qat_model4_"
inWidth = 640
inHeight = 320
inNumChannels = 3
inDataFormat = 0
inData = "/home/nikita/Work/TDA4/tidl_bisenet/tidl_configs/val.txt"
postProcType = 3
perfSimConfig = ../../test/testvecs/config/import/device_config.cfg
File tidl_import_bisenet.txt.qunat_stats_config.txt:
inFileFormat = 2
numFrames = 245
postProcType = 3
postProcDataId = 0
quantRangeUpdateFactor = -1.000000
inData = /home/nikita/Work/TDA4/tidl_bisenet/tidl_configs/val.txt
outData = "/home/nikita/Work/TDA4/tidl_bisenet/tidl_models/onnx/tidl_import_bisenet.txt_stats_tool_out.bin"
netBinFile = /home/nikita/Work/TDA4/tidl_bisenet/tidl_models/onnx/tidl_net_qat_model4.bin
ioConfigFile = /home/nikita/Work/TDA4/tidl_bisenet/tidl_models/onnx/tidl_io_qat_model4_1.bin
flowCtrl = 3
writeTraceLevel = 0
debugTraceLevel = 0
traceDumpBaseName = "/home/nikita/Work/TDA4/tidl_bisenet/tidl_models/onnx/tidl_import_bisenet.txt