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.

SK-TDA4VM: Error on python app when I run custom model

Part Number: SK-TDA4VM

Hello,

I could compile custom model on SDK.
And, I copied compiled model (artifacts, model,  param.yaml) to SD card.
After changing my_configuration.yaml to see custom model, and when I ran "./app_edgeai.py ../configs/my_confiiguration.yaml", I got following error.

APP: Init ... Done !!!
61.591091 s: VX_ZONE_INIT:Enabled
61.591107 s: VX_ZONE_ERROR:Enabled
61.591112 s: VX_ZONE_WARNING:Enabled
61.593403 s: VX_ZONE_INIT:[tivxInitLocal:130] Initialization Done !!!
61.595295 s: VX_ZONE_INIT:[tivxHostInitLocal:86] Initialization Done for HOST !!!
61.603769 s: VX_ZONE_ERROR:[ownContextSendCmd:815] Command ack message returned failure cmd_status: -1
61.603790 s: VX_ZONE_ERROR:[ownContextSendCmd:851] tivxEventWait() failed.
61.603797 s: VX_ZONE_ERROR:[ownNodeKernelInit:538] Target kernel, TIVX_CMD_NODE_CREATE failed for node TIDLNode
61.603804 s: VX_ZONE_ERROR:[ownNodeKernelInit:539] Please be sure the target callbacks have been registered for this core
61.603810 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
61.603817 s: VX_ZONE_ERROR:[ownGraphNodeKernelInit:583] kernel init for node 0, kernel com.ti.tidl ... failed !!!
61.603825 s: VX_ZONE_ERROR:[vxVerifyGraph:2055] Node kernel init failed
61.603831 s: VX_ZONE_ERROR:[vxVerifyGraph:2109] Graph verify failed
TIDL_RT_OVX: ERROR: Verifying TIDL graph ... Failed !!!
TIDL_RT_OVX: ERROR: Verify OpenVX graph failed

Could you please give your idea about which one may cause this error ?

BR,

  • Hi Ryuuichi,

    Could you run "source ./vision_apps_init.sh" before running the application and provide the logs?
    Please provide logs for both "source ./vision_apps_init.sh" and your application after running this command.

    Thank you,

    Fabiana Jaimes

  • Hello Jaimes-san,

    Thank you for your reply.
    Which directory does "vision_apps_init.sh" exist ?

    I found this file from /opt , but I could not find such shell file.
    Attached is my boot log and environment, could ypu please confirm about above my question ?
    (I found this file on SDK-RTOS (./vision_apps/apps/basic_demos/app_linux_fs_files/vision_apps_init.sh), but not relate to Linux environment..)

    BR,

    CustomModelLog_run_vision_apps_init--20221116.txt
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    U-Boot SPL 2021.01-g44a87e3ab8 (Apr 18 2022 - 22:20:44 +0000)
    Model: Texas Instruments J721E SK R5
    Board: J721EX-SK rev A
    SYSFW ABI: 3.1 (firmware rev 0x0016 '22.1.1--v2022.01 (Terrific Llam')
    Trying to boot from MMC2
    Starting ATF on ARM64 core...
    NOTICE: BL31: v2.5(release):08.01.00.006-dirty
    NOTICE: BL31: Built : 21:21:02, Apr 18 2022
    U-Boot SPL 2021.01-g44a87e3ab8 (Apr 18 2022 - 21:22:46 +0000)
    Model: Texas Instruments J721E SK A72
    Board: J721EX-SK rev A
    SYSFW ABI: 3.1 (firmware rev 0x0016 '22.1.1--v2022.01 (Terrific Llam')
    Trying to boot from MMC2
    U-Boot 2021.01-g44a87e3ab8 (Apr 18 2022 - 21:22:46 +0000)
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
     

  • Hello,

    Could you please send me about your feedback ?

    BR,

  • Hello,

    Sorry for asking several times, but I would like to know status on your side.
    Could you please give me something reply ?

    BR,

  • Hi,

    Could you try running: ./vx_app_arm_remote_log.out & ? This should enable vision_apps remote core logs. After running this command, try running the application again.

    Thank you,

    Fabiana Jaimes

  • Hello Jaimes-san,

    I tried performing ./vx_app_arm_remote_log.out &.
    After that, I performed following command to run application.
    ./app_edgeai.py ../configs/my_configuration.yaml

    However, I also got same error which I posted first...

    BR,

  • Hi,

    Could you please share the logs of ./vx_app_arm_remote_log.out & as well as the application logs after running the above command?
    I believe you would have got some extra logs from the remote side in your application. (Something like [C7x_1] ...... )

    This would help us understand the issue in more detail.

    Regards,
    Nikhil

  • CustomModelLog_run_vision_apps_init--20221207.txt
    Hello, Nikhil-san,

    Attached is log when I performed ./vx_app_arm_remote_log.out & and also included application log.
    (Please see line 979 (for out file log) and line 1243 (for application log).)

    BR,

  • Hi,

    Thank you for sharing the logs.
    From the logs I see the below error 

    [C7x_1]    233.780236 s:  VX_ZONE_ERROR: [tivxKernelTIDLCreate:644] Network version - 0x20220823, Expected version - 0x20211201

    It looks like your model is not imported for the current SDK that you are using.

    you are running a model that is imported for SDK 8.4 (0x20220823). 

    The application is expecting a model that is imported for 0x20211201 i.e., SDK 8.2

    Could you please reimport the model on the SDK you are currently using and test your application?

    Regards,
    Nikhil

  • Hello Nikhil-san,

    Thank you for your quick reply.
    Actually, I created SD image file by using 8.02. And after that, I implemented SDK 8.04 on VM-ware with ubuntu.
    So, I will re-create SD card by using following latest version. After that, I will test custom model by creating SDK 8.04.

    https://dr-download.ti.com/software-development/software-development-kit-sdk/MD-4K6R4tqhZI/08.04.00.10/ti-processor-sdk-linux-sk-tda4vm-etcher-image.zip

    BR,

  • Hello Nikhil-san,

    Thanks to your advice, I could avoid error which I posted.
    I got another problem when I run custom model, but since error content is different, I will close this thread.

    BR,