• TI Thinks Resolved

AM5749: TIDL execution error

Mastermind 9400 points

Replies: 3

Views: 114

Part Number: AM5749

Hi,

When the created tidl_config_XXX file is executed with test_tidl, the following error occurs.
Please tell me what to do.

[error log]
root@am57xx-evm:/usr/share/ti/tidl/examples/test# ./test_tidl -n 1 -t e -c ./tidl_config_ssdJacintoNetV2_deploy.txt -v
[10623.574095] omap-iommu 58882000.mmu: 58882000.mmu: version 2.1
[10623.612128] omap-iommu 41501000.mmu: 41501000.mmu: version 3.0
[10623.618698] omap-iommu 41502000.mmu: 41502000.mmu: version 3.0
[10623.626121] omap-iommu 40d01000.mmu: 40d01000.mmu: version 3.0
[10623.632005] omap-iommu 40d02000.mmu: 40d02000.mmu: version 3.0
-> Executor::Executor()
OCL Device: EVE created
Creating kernel ocl_tidl_setup
OCL Create B:0x461cc
Arg[0]: 0x461cc
OCL Create B:0x4625c
Arg[1]: 0x4625c
OCL Create B:0x55324
Arg[2]: 0x55324
OCL Create B:0x553b4
Arg[3]: 0x553b4
Kernel: EVE device 0 executing ocl_tidl_setup, context 0
Kernel: waiting context 0...
[eve 0] TIDL Device Trace: -> ocl_tidl_setup()
[eve 0] TIDL Device Trace: PARAM heap: Size 9437184, Free 6340248, Total requested 3096936
[eve 0] TIDL Device Trace: <- ocl_tidl_setup()
Kernel: finished execution
OCL Release B:0x461cc
OCL Release B:0x4625c
OCL Release B:0x55324
OCL Release B:0x553b4
-> ExecutionObject::ExecutionObject()
Creating kernel ocl_tidl_cleanup
Creating kernel ocl_tidl_initialize
OCL Create B:0x553b4
Arg[0]: 0x553b4
OCL Create B:0x55324
Arg[1]: 0x55324
OCL Create B:0x4625c
Arg[2]: 0x4625c
OCL Create B:0x461cc
Arg[3]: 0x461cc
Arg[4]: local, 4
Creating kernel ocl_tidl_process
OCL Create B:0x55f5c
Arg[0]: 0x55f5c
OCL Create B:0x56254
Arg[1]: 0x56254
OCL Create B:(nil)
Arg[2]: (nil)
Arg[3]: 0xbecc1408
<- ExecutionObject::ExecutionObject()
Kernel: EVE device 0 executing ocl_tidl_initialize, context 0
Kernel: waiting context 0...
[eve 0] TIDL Device Trace: -> ocl_tidl_initialize()
[eve 0] TIDL Device Trace: -> SetupMemoryRecords()
[eve 0] TIDL Device Trace: <- SetupMemoryRecords()
[eve 0] TIDL Device Trace: -> InitializeInputOutputBuffers()
[eve 0] TIDL Device Trace: <- InitializeInputOutputBuffers()
[eve 0] TIDL Device Trace: <- ocl_tidl_initialize()
[eve 0] TIDL Device Trace: NETWORK heap: Size 67108864, Free 30793344, Total requested 36315520
Kernel: finished execution
<- Executor::Executor()
test_tidl: ../common/utils.cpp:95: bool read_frame_helper(char*, size_t, std::istream&): Assertion `input_file.good()' failed.

[create tidl_config_ssdJacintoNetV2_deploy.txt]

numFrames = 1
preProcType = 4
netBinFile = "./tidl_net_custom_ssdJacintoNetV2.bin"
paramsBinFile = "./tidl_param_custom_ssdJacintoNetV2.bin"
inWidth = 512
inHeight = 256
inNumChannels = 3
inData = "./000000_bgr_512x256.raw"
outData = "./stats_tool_out.bin"


Best Regards,
Shigehiro Tsuda

  • Hi Tsuda-san, It is failing to find the inData input file for running the inference. Is that file in the location where you are running the test_tidl binary from?

  • In reply to manisha:

    Hi manisha,

    Thank you for quick reply.
    These file is located in the following directory.

    /home/root/custom_tidl

    netBinFile = "/home/root/custom_tidl/tidl_net_custom_ssdJacintoNetV2.bin"
    paramsBinFile = "/home/root/custom_tidl/tidl_param_custom_ssdJacintoNetV2.bin"
    inData = "/home/root/custom_tidl/000000_bgr_512x256.raw"

    test_tidl binary is default.
    /usr/share/ti/tidl/examples/test

    Best Regards,
    Shigehiro Tsuda

  • In reply to shigehiro tsuda:

    Hi Tsuda-san,

    Is this still an open issue for you? Please use the absolute path of the input files in your tidl_config_XXX file. If that still fails, I would suggest to first try the out if box example and then do one change at a time in the example config file to find out what's incorrect entry for you.

    Regards,

    Manisha