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.

Pytorch Converted Model doesn't work

Hi TI,

I have converted the model into pytorch which was previously successfully tested and deployed on the tda4 using Caffe framework. Now the pytorch based model contains the same layers has already been tested on the PC. When it comes to deploy on the TDA4. At first, I tested the model on the PC with import tool which gave me correct results. However, when I tried to deploy on tda4 it has some strange issues. I have tested tidl and tild_avp both. Both of the usecases generates the same error.  The network should be working fine as the structure is same. Kindly help me figure out why it isn't working. I have attached the log file of the tidl. Thank you.

root@j7-evm:/opt/vision_apps# ./run_app_tidl.sh 
APP: Init ... !!!
APP_LOG: Mapping 0xb8000000 ...
APP_LOG: Mapped 0xb8000000 -> 0xffff8e8b0000 of size 262144 bytes 
MEM: Init ION ... !!!
MEM: Initialized ION (fd=4) !!!
MEM: Init ION ... Done !!!
IPC: Init ... !!!
APP_LOG: Mapping 0xb8040000 ...
APP_LOG: Mapped 0xb8040000 -> 0xffff8c8f0000 of size 33292288 bytes 
APP_LOG: Mapping 0x30e00000 ...
APP_LOG: Mapped 0x30e00000 -> 0xffff8edc0000 of size 3072 bytes 
IPC: Init ... Done !!!
REMOTE_SERVICE: Init ... !!!
REMOTE_SERVICE: Init ... Done !!!
APP: Init ... Done !!!
     0.008956 s:  VX_ZONE_INIT:Enabled
     0.008975 s:  VX_ZONE_ERROR:Enabled
     0.008980 s:  VX_ZONE_WARNING:Enabled
     0.010874 s:  VX_ZONE_INIT:[tivxInit:64] Initialization Done !!!
     0.011006 s:  VX_ZONE_INIT:[tivxHostInit:35] Initialization Done for HOST !!!
     0.142575 s:  VX_ZONE_ERROR:[ownContextSendCmd:550] sending [   93.387715] ion_buffer_destroy: buffer still mapped in the kernel
object descriptor failed
     0.142597 s:  VX_ZONE_ERROR:[ownNodeKernelInit:456] Target kernel, TIVX_CMD_NODE_CREATE failed
     0.142622 s:  VX_ZONE_ERROR:[ownGraphNodeKernelInit:559] kernel init for node 0, kernel com.ti.tidl ... failed !!!
     0.142628 s:  VX_ZONE_ERROR:[vxVerifyGraph:1967] Node kernel init failed
     0.142632 s:  VX_ZONE_ERROR:[vxVerifyGraph:2021] Graph verify failed
app_tidl: ERROR: Verifying graph ... Failed !!!
     0.143080 s:  VX_ZONE_INIT:[tivxHostDeInit:40] De-Initialization Done for HOST !!!
     0.155419 s:  VX_ZONE_INIT:[tivxDeInit:100] De-Initialization Done !!!
APP: Deinit ... !!!
REMOTE_SERVICE: Deinit ... !!!
REMOTE_SERVICE: Deinit ... Done !!!
IPC: Deinit ... !!!
IPC: DeInit ... Done !!!
MEM: Deinit ION ... !!!
MEM: Alloc's: 17 alloc's of 24583950 bytes 
MEM: Free's : 17 free's  of 24583950 bytes 
MEM: Open's : 0 allocs  of 0 bytes 
MEM: Deinit ION ... Done !!!
APP: Deinit ... Done !!!
root@j7-evm:/opt/vision_apps# [  129.117696] NET: Registered protocol family 15
[  129.163640] Initializing XFRM netlink socket