Other Parts Discussed in Thread: AM68A,
Hi,
I successfully used "tidl_model_import.out" to convert the semantic segmentation model into Net.bin and IO.bin, but the results are incorrect.
I have checked that ONNX can be recognized, and the results are as follows.
The conversion results of tidl_model_import.out are as follows.
i use tidl_j721s2_08_06_00_10 tidl_model_import.out tool
Here is my console message,
./out/tidl_model_import.out ../../test/testvecs/models/public/onnx/frank/frank.txt --resizeWidth 640 --resizeHeight 640
ONNX Model (Proto) File : /home/john/TDA4/j721s2_rtos_8.6/tidl_j721s2_08_06_00_10/ti_dl/test/testvecs/models/public/onnx/frank/DeepLabV3Plus_tu-mobilenetv3_large_100.onnx
TIDL Network File : /home/john/TDA4/j721s2_rtos_8.6/tidl_j721s2_08_06_00_10/ti_dl/test/testvecs/models/public/onnx/frank/output/DeepLabV3Plus_tu-mobilenetv3_large_100.bin
TIDL IO Info File : /home/john/TDA4/j721s2_rtos_8.6/tidl_j721s2_08_06_00_10/ti_dl/test/testvecs/models/public/onnx/frank/output/DeepLabV3Plus_tu-mobilenetv3_large_100_
Current ONNX OpSet Version : 11
*** WARNING : Mul with constant tensor requires input dimensions of mul layer to be present as part of the network. If present, this warning can be ignored. If not, please use open source runtimes offering to run this model or run shape inference on this model before executing import ***
*** WARNING : Mul with constant tensor requires input dimensions of mul layer to be present as part of the network. If present, this warning can be ignored. If not, please use open source runtimes offering to run this model or run shape inference on this model before executing import ***
*** WARNING : Mul with constant tensor requires input dimensions of mul layer to be present as part of the network. If present, this warning can be ignored. If not, please use open source runtimes offering to run this model or run shape inference on this model before executing import ***
*** WARNING : Mul with constant tensor requires input dimensions of mul layer to be present as part of the network. If present, this warning can be ignored. If not, please use open source runtimes offering to run this model or run shape inference on this model before executing import ***
*** WARNING : Mul with constant tensor requires input dimensions of mul layer to be present as part of the network. If present, this warning can be ignored. If not, please use open source runtimes offering to run this model or run shape inference on this model before executing import ***
*** WARNING : Mul with constant tensor requires input dimensions of mul layer to be present as part of the network. If present, this warning can be ignored. If not, please use open source runtimes offering to run this model or run shape inference on this model before executing import ***
*** WARNING : Mul with constant tensor requires input dimensions of mul layer to be present as part of the network. If present, this warning can be ignored. If not, please use open source runtimes offering to run this model or run shape inference on this model before executing import ***
*** WARNING : Mul with constant tensor requires input dimensions of mul layer to be present as part of the network. If present, this warning can be ignored. If not, please use open source runtimes offering to run this model or run shape inference on this model before executing import ***
*** WARNING : Mul with constant tensor requires input dimensions of mul layer to be present as part of the network. If present, this warning can be ignored. If not, please use open source runtimes offering to run this model or run shape inference on this model before executing import ***
*** WARNING : Mul with constant tensor requires input dimensions of mul layer to be present as part of the network. If present, this warning can be ignored. If not, please use open source runtimes offering to run this model or run shape inference on this model before executing import ***
*** WARNING : Mul with constant tensor requires input dimensions of mul layer to be present as part of the network. If present, this warning can be ignored. If not, please use open source runtimes offering to run this model or run shape inference on this model before executing import ***
*** WARNING : Mul with constant tensor requires input dimensions of mul layer to be present as part of the network. If present, this warning can be ignored. If not, please use open source runtimes offering to run this model or run shape inference on this model before executing import ***
*** WARNING : Mul with constant tensor requires input dimensions of mul layer to be present as part of the network. If present, this warning can be ignored. If not, please use open source runtimes offering to run this model or run shape inference on this model before executing import ***
*** WARNING : Mul with constant tensor requires input dimensions of mul layer to be present as part of the network. If present, this warning can be ignored. If not, please use open source runtimes offering to run this model or run shape inference on this model before executing import ***
*** WARNING : Mul with constant tensor requires input dimensions of mul layer to be present as part of the network. If present, this warning can be ignored. If not, please use open source runtimes offering to run this model or run shape inference on this model before executing import ***
*** WARNING : Mul with constant tensor requires input dimensions of mul layer to be present as part of the network. If present, this warning can be ignored. If not, please use open source runtimes offering to run this model or run shape inference on this model before executing import ***
*** WARNING : Mul with constant tensor requires input dimensions of mul layer to be present as part of the network. If present, this warning can be ignored. If not, please use open source runtimes offering to run this model or run shape inference on this model before executing import ***
*** WARNING : Mul with constant tensor requires input dimensions of mul layer to be present as part of the network. If present, this warning can be ignored. If not, please use open source runtimes offering to run this model or run shape inference on this model before executing import ***
*** WARNING : Mul with constant tensor requires input dimensions of mul layer to be present as part of the network. If present, this warning can be ignored. If not, please use open source runtimes offering to run this model or run shape inference on this model before executing import ***
*** WARNING : Mul with constant tensor requires input dimensions of mul layer to be present as part of the network. If present, this warning can be ignored. If not, please use open source runtimes offering to run this model or run shape inference on this model before executing import ***
*** WARNING : Mul with constant tensor requires input dimensions of mul layer to be present as part of the network. If present, this warning can be ignored. If not, please use open source runtimes offering to run this model or run shape inference on this model before executing import ***
*** WARNING : Mul with constant tensor requires input dimensions of mul layer to be present as part of the network. If present, this warning can be ignored. If not, please use open source runtimes offering to run this model or run shape inference on this model before executing import ***
*** WARNING : Mul with constant tensor requires input dimensions of mul layer to be present as part of the network. If present, this warning can be ignored. If not, please use open source runtimes offering to run this model or run shape inference on this model before executing import ***
*** WARNING : Mul with constant tensor requires input dimensions of mul layer to be present as part of the network. If present, this warning can be ignored. If not, please use open source runtimes offering to run this model or run shape inference on this model before executing import ***
*** WARNING : Mul with constant tensor requires input dimensions of mul layer to be present as part of the network. If present, this warning can be ignored. If not, please use open source runtimes offering to run this model or run shape inference on this model before executing import ***
*** WARNING : Mul with constant tensor requires input dimensions of mul layer to be present as part of the network. If present, this warning can be ignored. If not, please use open source runtimes offering to run this model or run shape inference on this model before executing import ***
*** WARNING : Mul with constant tensor requires input dimensions of mul layer to be present as part of the network. If present, this warning can be ignored. If not, please use open source runtimes offering to run this model or run shape inference on this model before executing import ***
*** WARNING : Mul with constant tensor requires input dimensions of mul layer to be present as part of the network. If present, this warning can be ignored. If not, please use open source runtimes offering to run this model or run shape inference on this model before executing import ***
~~~~~Running TIDL in PC emulation mode to collect Activations range for each layer~~~~~
Processing config file #0 : /home/john/TDA4/j721s2_rtos_8.6/tidl_j721s2_08_06_00_10/ti_dl/test/testvecs/models/public/onnx/frank/output/frank.txt.qunat_stats_config.txt
Freeing memory for user provided Net
----------------------- TIDL Process with REF_ONLY FLOW ------------------------
# 0 . .. T 26969.16 .... ..... ... .... .....
# 1 . .. T 27587.32 .... ..... ... .... .....
~~~~~Running TIDL in PC emulation mode to collect Activations range for each layer~~~~~
Processing config file #0 : /home/john/TDA4/j721s2_rtos_8.6/tidl_j721s2_08_06_00_10/ti_dl/test/testvecs/models/public/onnx/frank/output/frank.txt.qunat_stats_config.txt
Freeing memory for user provided Net
----------------------- TIDL Process with REF_ONLY FLOW ------------------------
# 0 . .. T 6557.43 .... ..... ... .... .....
# 1 . .. T 6693.59 .... ..... ... .... .....
***************** Calibration iteration number 0 completed ************************
------------------ Network Compiler Traces -----------------------------
NC running for device: 1
Running with OTF buffer optimizations
successful Memory allocation
INFORMATION: [TIDL_ResizeLayer] /decoder/aspp/aspp.0/convs.4/Resize_TIDL_0 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. For example a 8x8 resize will be replaced by 4x4 resize followed by 2x2 resize.
INFORMATION: [TIDL_ResizeLayer] /decoder/aspp/aspp.0/convs.4/Resize_TIDL_1 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. For example a 8x8 resize will be replaced by 4x4 resize followed by 2x2 resize.
INFORMATION: [TIDL_ResizeLayer] /decoder/aspp/aspp.0/convs.4/Resize_TIDL_2 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. For example a 8x8 resize will be replaced by 4x4 resize followed by 2x2 resize.
SUGGESTION: [TIDL_ResizeLayer] /decoder/aspp/aspp.0/convs.4/Resize Resize kernel with non-power of 2 resize ratio is not optimal.
INFORMATION: [TIDL_ResizeLayer] /decoder/up/Resize 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. For example a 8x8 resize will be replaced by 4x4 resize followed by 2x2 resize.
INFORMATION: [TIDL_ResizeLayer] /segmentation_head/segmentation_head.1/Resize 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. For example a 8x8 resize will be replaced by 4x4 resize followed by 2x2 resize.
****************************************************
** 6 WARNINGS 0 ERRORS **
****************************************************
here is my frank.txt setting
modelType = 2
inputNetFile = "/home/john/TDA4/j721s2_rtos_8.6/tidl_j721s2_08_06_00_10/ti_dl/test/testvecs/models/public/onnx/frank/DeepLabV3Plus_tu-mobilenetv3_large_100.onnx"
outputNetFile = "/home/john/TDA4/j721s2_rtos_8.6/tidl_j721s2_08_06_00_10/ti_dl/test/testvecs/models/public/onnx/frank/output/DeepLabV3Plus_tu-mobilenetv3_large_100.bin"
outputParamsFile = "/home/john/TDA4/j721s2_rtos_8.6/tidl_j721s2_08_06_00_10/ti_dl/test/testvecs/models/public/onnx/frank/output/DeepLabV3Plus_tu-mobilenetv3_large_100_"
inDataNorm = 1
inMean = 0.485 0.456 0.406
inScale = 0.229 0.224 0.225
inDataFormat = 1
inResizeType = 1
resizeWidth = 640
resizeHeight = 640
inWidth = 640
inHeight = 640
inNumChannels = 3
inData = "/home/john/TDA4/j721s2_rtos_8.6/tidl_j721s2_08_06_00_10/ti_dl/test/testvecs/config/image/frank/frank.txt"
postProcType = 3
i take reference from https://software-dl.ti.com/jacinto7/esd/processor-sdk-rtos-jacinto7/08_02_00_05/exports/docs/tidl_j721e_08_02_00_11/ti_dl/docs/user_guide_html/md_tidl_model_import.html
Here is my files, please help me, thanks
modelType = 2
inputNetFile = "/home/john/TDA4/j721s2_rtos_8.6/tidl_j721s2_08_06_00_10/ti_dl/test/testvecs/models/public/onnx/frank/DeepLabV3Plus_tu-mobilenetv3_large_100.onnx"
outputNetFile = "/home/john/TDA4/j721s2_rtos_8.6/tidl_j721s2_08_06_00_10/ti_dl/test/testvecs/models/public/onnx/frank/output/DeepLabV3Plus_tu-mobilenetv3_large_100.bin"
outputParamsFile = "/home/john/TDA4/j721s2_rtos_8.6/tidl_j721s2_08_06_00_10/ti_dl/test/testvecs/models/public/onnx/frank/output/DeepLabV3Plus_tu-mobilenetv3_large_100_"
inDataNorm = 1
inMean = 0.485 0.456 0.406
inScale = 0.229 0.224 0.225
inDataFormat = 1
inResizeType = 1
resizeWidth = 640
resizeHeight = 640
inWidth = 640
inHeight = 640
inNumChannels = 3
inData = "/home/john/TDA4/j721s2_rtos_8.6/tidl_j721s2_08_06_00_10/ti_dl/test/testvecs/config/image/frank/frank.txt"
postProcType = 3