Hello!
I am working on integrating a TI Deep Learning ( https://training.ti.com/texas-instruments-deep-learning-tidl-overview ) model into an OpenVX (TIOVX) based application, the inference with TIDL itself works, as well as the application itself also, but when I run both together the application crashes when initializing the model with TIDL.
To be precise, we integrated our model as a custom OpenVX kernel ( https://software-dl.ti.com/jacinto7/esd/processor-sdk-rtos-jacinto7/latest/exports/docs/tiovx/docs/user_guide/TIOVX_TARGET_KERNEL.html ) and initialized the TIDL model inside the kernel and would also run inside the kernel. When running the Graph we get the following error message:
2171734.545072 s: VX_ZONE_ERROR:[tivxIpcSendMsg:96] OpenVX send notification failed
2171734.545105 s: VX_ZONE_ERROR:[tivxObjDescSend:272] tivxIpcSendMsg failed
2171734.545118 s: VX_ZONE_ERROR:[ownNodeKernelInit:538] Target kernel, TIVX_CMD_NODE_CREATE failed for node TIDLNode
2171734.545126 s: VX_ZONE_ERROR:[ownNodeKernelInit:539] Please be sure the target callbacks have been registered for this core
2171734.545135 s: VX_ZONE_ERROR:[ownNodeKernelInit:540] If the target callbacks have been registered, please ensure no errors are occurring within the create callback of this kernel
2171734.545144 s: VX_ZONE_ERROR:[ownGraphNodeKernelInit:583] kernel init for node 0, kernel com.ti.tidl ... failed !!!
2171734.545153 s: VX_ZONE_ERROR:[vxVerifyGraph:2044] Node kernel init failed
2171734.545161 s: VX_ZONE_ERROR:[vxVerifyGraph:2098] Graph verify failed
2171734.545250 s: VX_ZONE_ERROR:[ownGraphScheduleGraphWrapper:820] graph is not in a state required to be scheduled
2171734.545259 s: VX_ZONE_ERROR:[vxProcessGraph:755] schedule graph failed
2171734.545266 s: VX_ZONE_ERROR:[vxProcessGraph:760] wait graph failed
I suspect this might be caused by multiple vx_contexts, where the TIDL library does not know about the application it is running and therefore creates its own vx_context. Problem being, that there is (at least according to my knowledge) no public API to manually set the proper context for the TI DL lib to use.
Does anyone know how we could get this running? Or is the problem possibly somewhere else?
Best regards,
Robert!