请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:TDA4VM 您好!
我有 TDA4VM 板、 在 ubuntu 18.04下使用 ti-processor-sdk-rtos-j721e-evm 版本08_05。
我正在使用 Python 脚本导入并使用 OSRT ( TFLITE ) API 运行推理。
在几个 CNN 模型(TFLITE )上,我在推理期间收到一个错误,如下所示:
------- 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)
此错误在 SDK 版本08_05 上发生、但在版本08_04上不会发生。
我在 TIDL 源代码中检查了 一个与初始化期间内存分配失败相关的问题(在 tiovx/kernels/ivision/common/tivx_alg_vision.c 中 )
崩溃本身可能只是错误检测之后的一个错误。
下面是 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
如上所述,我在某些模型(预量化的 TFLITE 模型)上有这个错误。
感谢你的帮助。