Hi
I tried to run several networks on tda4x with CCS tool. The status is as blow.
Network model |
Status |
CCS Console message |
UART Log |
JacintoNet11v2 |
OK |
- |
- |
suqeezenet_1_1 |
OK |
- |
- |
resNet10 |
Fail |
Algorithm Init failed with error number: -1111 |
0.000884 s: APP: Init ... !!! 0.072221 s: CLI: Init ... !!! 0.146210 s: CLI: Init ... Done !!! 0.230206 s: MEM: Init ... !!! 0.304209 s: MEM: Created heap (DDR_SHARED_MEM, id=0, flags=0x00000004) @ 0x800c8000 of size 8388608 bytes !!! 0.538206 s: MEM: Init ... Done !!! 0.622206 s: FATFS: Init ... !!! 0.862991 s: FATFS: Init ... Done !!! 0.948206 s: APP: Init ... Done !!! 1.032211 s: APP: Run ... !!! 1.110060 s: Failed to open file test_rd.txt for read !!! 1.234215 s: Opened test_wr.txt file of for writing !!! 1.358206 s: Write complted!!! 412.600391 s: Request to open file testvecs/config/infer/public/caffe/tidl_infer_jacintonet11v2.txt in rb mode. 412.839203 s: File ID = Ox80074318, -2147007720 412.946390 s: Request to seek 0 bytes in mode 2 from file -2147007720 413.102386 s: Request to ftell from file -2147007720 413.220388 s: Request to seek 0 bytes in mode 0 from file -2147007720 413.372386 s: Request to read 385 bytes from file -2147007720 413.508391 s: Request to close file -2147007720 413.614390 s: Request to open file testvecs/config/tidl_models/caffe/tidl_io_resnet10_1.bin in rb mode. 413.837181 s: File ID = Ox80074318, -2147007720 413.944391 s: Request to read 9736 bytes from file -2147007720 414.092392 s: Request to close file -2147007720 414.198390 s: Request to open file testvecs/config/tidl_models/caffe/tidl_net_resnet10.bin in rb mode. 414.419205 s: File ID = Ox80074318, -2147007720 414.526391 s: Request to seek 0 bytes in mode 2 from file -2147007720 414.684391 s: Request to ftell from file -2147007720 414.802388 s: Request to close file -2147007720 414.908388 s: Request to open file testvecs/config/tidl_models/caffe/tidl_net_resnet10.bin in rb mode. 415.129208 s: File ID = Ox80074318, -2147007720 415.236387 s: Request to seek 0 bytes in mode 2 from file -2147007720 415.394389 s: Request to ftell from file -2147007720 415.512391 s: Request to close file -2147007720 415.618393 s: Request to open file testvecs/config/tidl_models/caffe/tidl_net_resnet10.bin in rb mode. 415.839209 s: File ID = Ox80074318, -2147007720 415.946389 s: Request to read 5490192 bytes from file -2147007720 419.366390 s: Request to close file -2147007720 |
mobilenet_v1 |
OK |
- |
- |
mobilenet_v2 |
Fail |
Algorithm Init failed with error number: -1111 |
0.000895 s: APP: Init ... !!! 0.072226 s: CLI: Init ... !!! 0.146213 s: CLI: Init ... Done !!! 0.230210 s: MEM: Init ... !!! 0.304213 s: MEM: Created heap (DDR_SHARED_MEM, id=0, flags=0x00000004) @ 0x800c8000 of size 8388608 bytes !!! 0.538210 s: MEM: Init ... Done !!! 0.622210 s: FATFS: Init ... !!! 1.177807 s: FATFS: Init ... Done !!! 1.262210 s: APP: Init ... Done !!! 1.346215 s: APP: Run ... !!! 1.423943 s: Failed to open file test_rd.txt for read !!! 1.548220 s: Opened test_wr.txt file of for writing !!! 1.672210 s: Write complted!!! 141.978392 s: Request to open file testvecs/config/infer/public/caffe/tidl_infer_jacintonet11v2.txt in rb mode. 142.217712 s: File ID = Ox80074318, -2147007720 142.324395 s: Request to seek 0 bytes in mode 2 from file -2147007720 142.480393 s: Request to ftell from file -2147007720 142.598396 s: Request to seek 0 bytes in mode 0 from file -2147007720 142.750395 s: Request to read 393 bytes from file -2147007720 142.886393 s: Request to close file -2147007720 142.992396 s: Request to open file testvecs/config/tidl_models/caffe/tidl_io_mobilenet_v2_1.bin in rb mode. 143.223426 s: File ID = Ox80074318, -2147007720 143.330395 s: Request to read 9736 bytes from file -2147007720 143.478397 s: Request to close file -2147007720 143.584394 s: Request to open file testvecs/config/tidl_models/caffe/tidl_net_mobilenet_v2.bin in rb mode. 143.813602 s: File ID = Ox80074318, -2147007720 143.920397 s: Request to seek 0 bytes in mode 2 from file -2147007720 144.078392 s: Request to ftell from file -2147007720 144.196394 s: Request to close file -2147007720 144.302395 s: Request to open file testvecs/config/tidl_models/caffe/tidl_net_mobilenet_v2.bin in rb mode. 144.531629 s: File ID = Ox80074318, -2147007720 144.638393 s: Request to seek 0 bytes in mode 2 from file -2147007720 144.796394 s: Request to ftell from file -2147007720 144.914396 s: Request to close file -2147007720 145.020395 s: Request to open file testvecs/config/tidl_models/caffe/tidl_net_mobilenet_v2.bin in rb mode. 145.249580 s: File ID = Ox80074318, -2147007720 145.356391 s: Request to read 7157072 bytes from file -2147007720 149.246399 s: Request to close file -2147007720 |
resnext50-32x4d |
Fail |
Algorithm Init failed with error number: -1111 |
0.000885 s: APP: Init ... !!! 0.072222 s: CLI: Init ... !!! 0.146210 s: CLI: Init ... Done !!! 0.230207 s: MEM: Init ... !!! 0.304209 s: MEM: Created heap (DDR_SHARED_MEM, id=0, flags=0x00000004) @ 0x800c8000 of size 8388608 bytes !!! 0.538207 s: MEM: Init ... Done !!! 0.622207 s: FATFS: Init ... !!! 1.171418 s: FATFS: Init ... Done !!! 1.256207 s: APP: Init ... Done !!! 1.340211 s: APP: Run ... !!! 1.418020 s: Failed to open file test_rd.txt for read !!! 1.542217 s: Opened test_wr.txt file of for writing !!! 1.666207 s: Write complted!!! 47.848387 s: Request to open file testvecs/config/infer/public/caffe/tidl_infer_jacintonet11v2.txt in rb mode. 48.089669 s: File ID = Ox80074318, -2147007720 48.196388 s: Request to seek 0 bytes in mode 2 from file -2147007720 48.352389 s: Request to ftell from file -2147007720 48.470393 s: Request to seek 0 bytes in mode 0 from file -2147007720 48.622391 s: Request to read 399 bytes from file -2147007720 48.758392 s: Request to close file -2147007720 48.864391 s: Request to open file testvecs/config/tidl_models/caffe/tidl_io_resnext50-32x4d_1.bin in rb mode. 49.101971 s: File ID = Ox80074318, -2147007720 49.208390 s: Request to read 9736 bytes from file -2147007720 49.358390 s: Request to close file -2147007720 49.464391 s: Request to open file testvecs/config/tidl_models/caffe/tidl_net_resnext50-32x4d.bin in rb mode. 49.699576 s: File ID = Ox80074318, -2147007720 49.806388 s: Request to seek 0 bytes in mode 2 from file -2147007720 49.966392 s: Request to ftell from file -2147007720 50.084390 s: Request to close file -2147007720 50.190390 s: Request to open file testvecs/config/tidl_models/caffe/tidl_net_resnext50-32x4d.bin in rb mode. 50.425588 s: File ID = Ox80074318, -2147007720 50.532387 s: Request to seek 0 bytes in mode 2 from file -2147007720 50.692392 s: Request to ftell from file -2147007720 50.810385 s: Request to close file -2147007720 50.916392 s: Request to open file testvecs/config/tidl_models/caffe/tidl_net_resnext50-32x4d.bin in rb mode. 51.151588 s: File ID = Ox80074318, -2147007720 51.258388 s: Request to read 25227344 bytes from file -2147007720 64.634392 s: Request to close file -2147007720 |
(* All networks were downloaded on "{PSDKRA}/psdk_rtos_auto_j7_06_00_01_00_docs_only/tidl_j7_00_09_01_00/ti_dl/docs/user_guide_html/md_tidl_models_info.html")
(* Please download attached files to read UART logs)
I don't know why some networks including resNet10, mobilenet_v2 and resnext50-32x4d doesn't initialize algorithm on tda4x.
It seems like importing those networks are normal because I didn't change any configure files and scripts.
I'll tell you my sequence to run those networks on target board as below.
1. Import network.
2. Copy io.bin and net.bin to SDCARD
3. Open "{SDCARD}\testvecs\config\infer\public\caffe\tidl_infer_jacintonet11v2.txt
- Edit the path of netBinFile and ioConfigFile to run the network I want to test.(I ever didn't change another things.)
4. Insert SDCARD into the target board.
5. Run CCS.
6. Open scripting console.
7. enter "load("Z:/workspace/ti_tda4x/EVM/psdk_rtos_auto_j7_06_00_01_00/pdk/packages/ti/drv/sciclient/tools/ccsLoadDmsc/j721e/launch.js");"
8. enter "load("Z:/workspace/ti_tda4x/EVM/psdk_rtos_auto_j7_06_00_01_00/tidl_j7_00_09_01_00/ti_dl/utils/targetTest/launch_tidl.js");"
And I used PSDKRA6.0.1 and CCS version is 9.0.1.
Please check the logs and let me know why some networks don't run on EVM.
Best regard.
Yongsig.