Hi,
Our custom SSD model does not work.
1.In the host pc environment, the created SSD model can be recognized normally.
2.It succeeded in tidl_import, and it seems that the ssd_multibox execution result of example does not have any error.
DEFAULT_XXX of ssd_multibox/main.cpp is changed.
In the default one, the following log is output, but in the custom created one, the log is not output and it seems that it has completed with a timeout.
Even if the created multibox_0.png is displayed, the recognition BOX was not displayed.
Saving frame 0 to: frame_0.png
0: (204, 57)-> (568, 300): horse, score = 0.525879
1: (274, -4)-> (380, 173): person, score = 0.338013
Saving frame 0 with SSD multiboxes to: multibox_0.png
Loop total time (including read / write / opencv / print / etc): 601.4ms
I don't know how to debug.
Please give me advice on countermeasures.
The result of executing ssd_multibox is as follows.
cd /usr/share/ti/tidl/examples/ssd_multibox2
./ssd_multibox -i /home/root/cm_dl/cm_caffemodel/input_img/000000.jpg -v
[12878.281723] omap-iommu 58882000.mmu: 58882000.mmu: version 2.1
[12878.320418] omap-iommu 41501000.mmu: 41501000.mmu: version 3.0
[12878.326973] omap-iommu 41502000.mmu: 41502000.mmu: version 3.0
[12878.334406] omap-iommu 40d01000.mmu: 40d01000.mmu: version 3.0
[12878.340291] omap-iommu 40d02000.mmu: 40d02000.mmu: version 3.0
Input: /home/root/cm_dl/cm_lego_caffemodel/input_img/000000.jpg
-> Executor::Executor()
OCL Device: EVE created
Creating kernel ocl_tidl_setup
OCL Create B:0x55a4c
Arg[0]: 0x55a4c
OCL Create B:0x55adc
Arg[1]: 0x55adc
OCL Create B:0xbff14
Arg[2]: 0xbff14
OCL Create B:0xbffa4
Arg[3]: 0xbffa4
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:0x55a4c
OCL Release B:0x55adc
OCL Release B:0xbff14
OCL Release B:0xbffa4
-> ExecutionObject::ExecutionObject()
Creating kernel ocl_tidl_cleanup
Creating kernel ocl_tidl_initialize
OCL Create B:0xbffa4
Arg[0]: 0xbffa4
OCL Create B:0xbff14
Arg[1]: 0xbff14
OCL Create B:0x55adc
Arg[2]: 0x55adc
OCL Create B:0x55a4c
Arg[3]: 0x55a4c
Arg[4]: local, 4
Creating kernel ocl_tidl_process
OCL Create B:0xc06e4
Arg[0]: 0xc06e4
OCL Create B:0xc079c
Arg[1]: 0xc079c
OCL Create B:(nil)
Arg[2]: (nil)
Arg[3]: 0xbed3e548
<- 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, T otal requested 36315520
Kernel: finished execution
<- Executor::Executor()
-> Executor::Executor()
OCL Device: DSP created
Creating kernel ocl_tidl_setup
OCL Create B:0xc2a1c
Arg[0]: 0xc2a1c
OCL Create B:0xc2cb4
Arg[1]: 0xc2cb4
OCL Create B:0xc2f4c
Arg[2]: 0xc2f4c
OCL Create B:0xc31e4
Arg[3]: 0xc31e4
Kernel: DSP device 0 executing ocl_tidl_setup, context 0
Kernel: waiting context 0...
[core 0] TIDL Device Trace: -> ocl_tidl_setup()
[core 0] TIDL Device Trace: PARAM heap: Size 9437184, Free 6340248, Total requested 3096936
[core 0] TIDL Device Trace: <- ocl_tidl_setup()
Kernel: finished execution
OCL Release B:0xc2a1c
OCL Release B:0xc2cb4
OCL Release B:0xc2f4c
OCL Release B:0xc31e4
-> ExecutionObject::ExecutionObject()
Creating kernel ocl_tidl_cleanup
Creating kernel ocl_tidl_initialize
OCL Create B:0xc31e4
Arg[0]: 0xc31e4
OCL Create B:0xc2f4c
Arg[1]: 0xc2f4c
OCL Create B:0xc2cb4
Arg[2]: 0xc2cb4
OCL Create B:0xc2a1c
Arg[3]: 0xc2a1c
Arg[4]: local, 4
Creating kernel ocl_tidl_process
OCL Create B:0xc3c6c
Arg[0]: 0xc3c6c
OCL Create B:0xc3f64
Arg[1]: 0xc3f64
OCL Create B:(nil)
Arg[2]: (nil)
Arg[3]: 0xbed3e548
<- ExecutionObject::ExecutionObject()
Kernel: DSP device 0 executing ocl_tidl_initialize, context 0
Kernel: waiting context 0...
[core 0] TIDL Device Trace: -> ocl_tidl_initialize()
[core 0] TIDL Device Trace: -> SetupMemoryRecords()
[core 0] TIDL Device Trace: <- SetupMemoryRecords()
[core 0] TIDL Device Trace: -> InitializeInputOutputBuffers()
[core 0] TIDL Device Trace: <- InitializeInputOutputBuffers()
[core 0] TIDL Device Trace: <- ocl_tidl_initialize()
[core 0] TIDL Device Trace: NETWORK heap: Size 67108864, Free 66256000, T otal requested 852864
Kernel: finished execution
<- Executor::Executor()
Kernel: EVE device 0 executing ocl_tidl_process, context 0
[eve 0] TIDL Device Trace: -> ocl_tidl_process(frame 0, context 0)
[eve 0] TIDL Device Trace: <- ocl_tidl_process(frame 0, context 0)
-> [12905.564542] omap-iommu 40d01000.mmu: 40d01000.mmu: version 3.0
ExecutionObject::WaitAndReleaseContext(0)
Kernel: waiting cont[12905.576771] omap-iommu 40d02000.mmu: 40d02000.mmu : version 3.0
ext 0...
Kernel: finished execution
Kernel: DSP device 0 executing ocl_tidl_process, context 0
[core 0] TIDL Device Trace: -> ocl_tidl_process(frame 0, context 0)
[core 0] TIDL Device Trace: <- ocl_tidl_process(frame 0, context 0)
-> ExecutionObject::WaitAndReleaseContext(0)
Kernel: waiting context 0...
Ke[12905.612666] omap-iommu 41501000.mmu: 41501000.mmu: version 3.0
rnel: finished execution
Saving frame 0 with SSD multiboxes to:[12905.621229] omap-iommu 41502000.mmu: 41 502000.mmu: version 3.0
multibox_0.png
Loop total time (including read/write/opencv/print/etc): 2.421e+04ms
Kernel: EVE device 0 executing ocl_tidl_cleanup, context 0
Kernel: waiting context 0...
Kernel: finished execution
OCL Device: deleted
OCL Release B:0xc06e4
OCL Release B:0xc079c
OCL Release B:0xbffa4
OCL Release B:0xbff14
OCL Release B:0x55adc
OCL Release B:0x55a4c
Kernel: DSP device 0 executing ocl_tidl_cleanup, context 0
Kernel: waiting context 0...
Kernel: finished execution
OCL Device: deleted
OCL Release B:0xc3c6c
OCL Release B:0xc3f64
OCL Release B:0xc31e4
OCL Release B:0xc2f4c
OCL Release B:0xc2cb4
OCL Release B:0xc2a1c
ssd_multibox PASSED
Best Regards,
Shigehiro Tsuda