@Frank
thank you for yolo-v4 support.
On a fresh new built today vim3 image with fenix,
#VERSION: 0.9.4
#KHADAS_BOARD=VIM3
#VENDOR=Amlogic
#CHIP=A311D
#LINUX=4.9
#UBOOT=2015.01
#DISTRIBUTION=Ubuntu
#DISTRIB_RELEASE=focal
#DISTRIB_TYPE=server
#DISTRIB_ARCH=arm64
#INSTALL_TYPE=SD-USB
I’ve troubles running the yolo-v4 detection. I don’t have any camera attached to the board so, to work on pictures, I built the ‘Files · master · khadas / aml_npu_app · GitLab’ pointing to ‘aml_npu_sdk_6.4.0.10/linux_sdk/linux_sdk_6.4.0.10’. I issued also the INSTALL command from your binaries to install libraries.
What I get is:
./bin_r/detect_demo 4 1080p.bmp
init_fb...
1920x1080, 32bpp
W Detect_api:[det_set_log_level:19]Set log level=1
W Detect_api:[det_set_log_level:21]output_format not support Imperfect, default to DET_LOG_TERMINAL
W Detect_api:[det_set_log_level:26]Not exist VSI_NN_LOG_LEVEL, Setenv set_vsi_log_error_level
det_set_log_config Debug
Error: yolo_v4.c: model_create at 31
E Detect_api:[det_set_model:225]Model_create fail, file_path=nn_data, dev_type=1
det_set_model fail. ret=-4
The same binary works fine with yolo-v3 (det = 2)
I also tried my test application where I did the shrink between app and libs in just one binary for ease of use. I got same error on model creation with more debug details:
./cmake-build-debug-vim3/TestDetectDemoFull 1080p.bmp
Read Cpuinfo: processor : 0
BogoMIPS : 48.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
processor : 1
BogoMIPS : 48.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
processor : 2
BogoMIPS : 48.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd09
CPU revision : 2
processor : 3
BogoMIPS : 48.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd09
CPU revision : 2
processor : 4
BogoMIPS : 48.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd09
CPU revision : 2
processor : 5
BogoMIPS : 48.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd09
CPU revision : 2
Serial : 290b1000010e0d00000d35374d4d4e50
Hardware : Khadas VIM3
290 index=1096
set_dev_type REVB and setenv 1
Start create Model, data_file_path=/home/khadas/workspace/TestDetectDemoFull/nn_data
D [setup_node:368]Setup node id[0] uid[0] op[NBG]
D [print_tensor:136]in(0) : id[ 0] vtl[0] const[0] shape[ 416, 416, 3, 1 ] fmt[i8 ] qnt[DFP fl= 7]
D [print_tensor:136]out(0): id[ 1] vtl[0] const[0] shape[ 52, 52, 255, 1 ] fmt[i8 ] qnt[DFP fl= 1]
D [print_tensor:136]out(1): id[ 2] vtl[0] const[0] shape[ 26, 26, 255, 1 ] fmt[i8 ] qnt[DFP fl= 2]
D [print_tensor:136]out(2): id[ 3] vtl[0] const[0] shape[ 13, 13, 255, 1 ] fmt[i8 ] qnt[DFP fl= 2]
D [optimize_node:312]Backward optimize neural network
D [optimize_node:319]Forward optimize neural network
I [compute_node:261]Create vx node
Error: /home/khadas/workspace/TestDetectDemoFull/src/yolo_v4.cpp: model_create at 31
*** stack smashing detected ***: terminated
Aborted
I noticed there’s a difference in size between libovxlib.so installed on /usr/lib and the one available on SDK-6.4.0.10
What do you think?
Thanks and regards
F