Hello,
I have the TDA4VM board and use the ti-processor-sdk-rtos-j721e-evm version 08_05 under Ubuntu 18.04.
I am using a Python script to import and run inference using OSRT ( TFLITE ) API .
On several CNN models (TFLITE ) , i got an error during inference as follows :
------- config file ---------
{'model_path': '../SHARE/ydet/ydet_reduced_int8.tflite', 'artifact_folder': './ARTIF/artif_YDET', 'in_range_min': 0.0, 'in_range_max': 1.0, 'calib_nbTensors': 1, 'calib_accuy': 0, 'calib_nbIterations': 1, 'calib_tensorBits': 8, 'calib_debug_level': 0, 'calib_deny_list': ' 114 , 6 ', 'calib_high_resolution_optimization': 0, 'random_mode': 0, 'inence_debug_level': 0, 'images_folder': '', 'image_inf': '', 'image_inf_constval': 0.5, 'model_type': 1}
----------------
running inference on TIDL , and on OSRT
INFERENCE tidl_tools_path=/home/ti-proc-rtos-8-5/tidl_j721e_08_05_00_16/tidl_tools , artifact_folder=./ARTIF/artif_YDET , model=../SHARE/ydet/ydet_reduced_int8.tflite
run inference ... use_tidl backend = True
Number of subgraphs:1 , 73 nodes delegated out of 77 nodes
The soft limit is 2048
The hard limit is 2048
MEM: Init ... !!!
MEM: Init ... Done !!!
0.0s: VX_ZONE_INIT:Enabled
0.11s: VX_ZONE_ERROR:Enabled
0.15s: VX_ZONE_WARNING:Enabled
0.2134s: VX_ZONE_INIT:[tivxInit:184] Initialization Done !!!
0.7465s: VX_ZONE_ERROR:[tivxAlgiVisionCreate:332] Calling ialg.algInit failed with status = -1120
Segmentation fault (core dumped)
This error happens on SDK version 08_05 but not on version 08_04.
I checked in TIDL source code and found a problem related to memory allocation that fails during init ( in tiovx/kernels/ivision/common/tivx_alg_vision.c )
The crash itself is probably simply a bug after error detection.
Here is the backtrace in GDB :
Thread 7 "python3" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffea8f9700 (LWP 13696)]
0x00007fffc0fd3ea4 in TIDL_removePriorityObject(void*, IALG_MemRec*) () from /home/ti-proc-rtos-8-5/tidl_j721e_08_05_00_16/tidl_tools/libvx_tidl_rt.so
(gdb) bt
#0 0x00007fffc0fd3ea4 in TIDL_removePriorityObject(void*, IALG_MemRec*) () from /home/ti-proc-rtos-8-5/tidl_j721e_08_05_00_16/tidl_tools/libvx_tidl_rt.so
#1 0x00007fffc0eed99a in tivxAlgiVisionDeleteAlg () from /home/ti-proc-rtos-8-5/tidl_j721e_08_05_00_16/tidl_tools/libvx_tidl_rt.so
#2 0x00007fffc0eeddcf in tivxAlgiVisionCreate () from /home/ti-proc-rtos-8-5/tidl_j721e_08_05_00_16/tidl_tools/libvx_tidl_rt.so
#3 0x00007fffc0eece6d in tivxKernelTIDLCreate () from /home/ti-proc-rtos-8-5/tidl_j721e_08_05_00_16/tidl_tools/libvx_tidl_rt.so
#4 0x00007fffc0ee9a80 in ownTargetKernelCreate () from /home/ti-proc-rtos-8-5/tidl_j721e_08_05_00_16/tidl_tools/libvx_tidl_rt.so
#5 0x00007fffc0ee1715 in ownTargetNodeDescNodeCreate () from /home/ti-proc-rtos-8-5/tidl_j721e_08_05_00_16/tidl_tools/libvx_tidl_rt.so
#6 0x00007fffc0ee3154 in ownTargetTaskMain () from /home/ti-proc-rtos-8-5/tidl_j721e_08_05_00_16/tidl_tools/libvx_tidl_rt.so
#7 0x00007fffc0eea558 in tivxTaskMain () from /home/ti-proc-rtos-8-5/tidl_j721e_08_05_00_16/tidl_tools/libvx_tidl_rt.so
#8 0x00007ffff77ca6db in start_thread (arg=0x7fffea8f9700) at pthread_create.c:463
#9 0x00007ffff7b0361f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
As said, i have this error on some models ( pre-quantized TFLITE models ).
Thanks for your help.