Part Number: TDA4VM
I trained an object detection model using pytorch-mmdetection and got the onnx model. I am trying to convert the model to binaries to deploy on the TDA4VMXEVM board using the app_tidl_od app. I am using the 07_00_00_11 version of the SDK. I have already run the app with the default peele network without any problem. I have created a config file for the onnx model. When I try to create the binaries I get the following error:
autoai@autoai-ThinkPad-P50:~/ADAS/KTM/07_00_00/psdk_7_0/psdk_rtos_auto_j7_07_00_00_11/tidl_j7_01_02_00_09/ti_dl/utils/tidlModelImport/out$ ./tidl_model_import.out ../../../test/testvecs/config/import/public/onnx/tidl_import_retinanet.txt Couldn't open inputNetFile file: ../../test/testvecs/models/public/onnx/model.onnx
I then gave the complete paths in the config file and I got the following error:
autoai@autoai-ThinkPad-P50:~/ADAS/KTM/07_00_00/psdk_7_0/psdk_rtos_auto_j7_07_00_00_11/tidl_j7_01_02_00_09/ti_dl/utils/tidlModelImport/out$ ./tidl_model_import.out ../../../test/testvecs/config/import/public/onnx/tidl_import_retinanet.txt ONNX Model (Proto) File : /home/autoai/ADAS/KTM/07_00_00/psdk_7_0/psdk_rtos_auto_j7_07_00_00_11/tidl_j7_01_02_00_09/ti_dl/test/testvecs/models/public/onnx/model.onnx TIDL Network File : /home/autoai/ADAS/KTM/07_00_00/psdk_7_0/psdk_rtos_auto_j7_07_00_00_11/tidl_j7_01_02_00_09/ti_dl/test/testvecs/config/tidl_models/onnx/tidl_net_retinanet.bin TIDL IO Info File : /home/autoai/ADAS/KTM/07_00_00/psdk_7_0/psdk_rtos_auto_j7_07_00_00_11/tidl_j7_01_02_00_09/ti_dl/test/testvecs/config/tidl_models/onnx/tidl_io_retinanet.bin Current ONNX OpSet Version : 9 INFO : Couldn't open inData file: ../../test/testvecs/config/imageNet_sample_val.txt , Skipping Range Collection for Quantization INFO : Couldn't open perfSimConfig file: ../../test/testvecs/config/import/device_config.cfg , Skipping Performance Simulation 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. **************************************************** ** 1 WARNINGS 1 ERRORS ** ****************************************************
I then gave the complete path to inData and perfSimConfig as well which led to the following error:
autoai@autoai-ThinkPad-P50:~/ADAS/KTM/07_00_00/psdk_7_0/psdk_rtos_auto_j7_07_00_00_11/tidl_j7_01_02_00_09/ti_dl/utils/tidlModelImport/out$ ./tidl_model_import.out ../../../test/testvecs/config/import/public/onnx/tidl_import_retinanet.txt ONNX Model (Proto) File : /home/autoai/ADAS/KTM/07_00_00/psdk_7_0/psdk_rtos_auto_j7_07_00_00_11/tidl_j7_01_02_00_09/ti_dl/test/testvecs/models/public/onnx/model.onnx TIDL Network File : /home/autoai/ADAS/KTM/07_00_00/psdk_7_0/psdk_rtos_auto_j7_07_00_00_11/tidl_j7_01_02_00_09/ti_dl/test/testvecs/config/tidl_models/onnx/tidl_net_retinanet.bin TIDL IO Info File : /home/autoai/ADAS/KTM/07_00_00/psdk_7_0/psdk_rtos_auto_j7_07_00_00_11/tidl_j7_01_02_00_09/ti_dl/test/testvecs/config/tidl_models/onnx/tidl_io_retinanet.bin Current ONNX OpSet Version : 9 Couldn't open tidlStatsTool file: ../../test/PC_dsp_test_dl_algo.out Couldn't open perfSimTool file: ../../utils/perfsim/ti_cnnperfsim.out 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. **************************************************** ** 1 WARNINGS 1 ERRORS ** ****************************************************
The binaries were generated but as it is mentioned in the error above, there was an error when deploying on the board. Is there something that I am missing? I shouldn't have to give the complete path in the config file right?
Let me know if you need further information from me.
Thanks,
Prithvi
