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.
Hi all,
When i try to import an ONNX model with TIDL import tool of release psdk_rtos_auto_j7_06_02_00_21
It is giving for the following errors
1)
2)
Any help would be appreciated.
Thanks in Advance.
Hi Lola,
The Transpose layer in ONNX model format is only supported in the context fo the Shuffle Layer. Please refer below for list of supported layers
http://software-dl.ti.com/jacinto7/esd/processor-sdk-rtos-jacinto7/latest/exports/docs/tidl_j7_01_01_00_10/ti_dl/docs/user_guide_html/md_tidl_layers_info.html
If the Transpose is used only at the end of the model in your network, please select the layers before Transpose as outputs from TIDL and perform transpose as post-processing step.
Use "outDataNamesList" in below to set output tensors names
Hi Kumar,
Thanks for your reply
I tried to set "outDataNamesList" as u told but still the error is not resolved, I have attached my onnx where the transpose is involved
Also the "concat " is triggering an error as below
Could not find const or initializer 648 !!!
Only float and INT64 tensor is suported
Any idea of why is it happening so.
Hi Lola,
Can you share what values you have configuredin outDataNamesList?
Regards
Anshu
Hi,
Thanks a lot for all your help the import is done without any errors.
But, I need clarification on how to implement the PostProcessing part, how to link my remaining model to find the confidences and locations.
My model is MobileNetV2+SSD, I have attached the .zip of my input ONNX model, Configuration file used for import and also the Graphviz svg file for visualise the output of Tidl-import.
Hi Lola,
This model has 8 output tensors and dimensions for each of them are apart of the IOparams which is part of import tool. Each output ID is associated with a name in the original model. This name is available in the generated svg file during the import tool . You can use names to identify the tensors. You can refer the following document to understand how these output tensors are stored :
Once you know which output maps to which output in your original network then you can implement the post processing.
Regards,
Anshu
Hi Anshu,
Can you help me with identifying the Output ID its name and how to map to the output of original network so as to implement the post processing.
Also mention which code or function i need to check so as to know how to perform post processing.
Regards,
Lola
Hi Lola,
Is the documentation mentioned in above reply not helping :
You can refer tidl_tb_postProc.c file in ti_dl/test/src/tidl_image_postproc.c file to understand how post processing is implemented in TIDL test bench.
Regards
Anshu
Hi Anshu
The documentation you provided i am referring to it, it was helpful.
But the thing i struck is at "Each output ID is associated with a name in the original model. This name is available in the generated svg file during the import tool . You can use names to identify the tensors. "
When i check in svg file i cant identify any output ID, u can refer to the below attached image.
So i was not able to identify which output maps to which output in my original network.
I hope i explained my issues you can ask me if you need any more details.
Hi Lola,
The outDataId corresponding outDataName can be read from the IO param file which gets generated during import process. You can refer this to get the mapping. Following is the link for the inferface for the same :
http://software-dl.ti.com/jacinto7/esd/processor-sdk-rtos-jacinto7/latest/exports/docs/tidl_j7_01_01_00_10/ti_dl/docs/user_guide_html/structsTIDL__IOBufDesc__t.html#a0fb1b51bec28ee3576be3280024b5ad5
Note that in the svg file the first index in square bracket tells the layer number and second index tells the corresponding data id.
Let me know if you still face some issue.
Regards,
Anshu
Hi Anshu,
Thanks for the links provided.
Found out the required parameter values
Thanks