[AML NPU demo] yolov3 demo fails

Dear all,

I am trying to run the yolov3 NPU demo from this guide on a Khadas VIM3, but the run fails, throwing

(env) khadas@Khadas [10:16:33 AM] [~/workspace_yolo/aml_npu_demo_binaries/detect_demo_picture] [master]
-> % ./detect_demo_x11 -m 2 -p 1080p.bmp 
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
E Detect_api:[check_and_set_function:177]dlopen libnn_yolo_v3.so failed!
E Detect_api:[det_set_model:218]ModelType so open failed or Not support now!!
det_set_model fail. ret=-1

I ran sudo ./INSTALL and the *.so are indeed in /usr/lib/, i.e.

(env) khadas@Khadas [10:30:01 AM] [~/workspace_yolo] 
-> % ls /usr/lib | grep yolo
libnn_yolo_tiny.so
libnn_yolo_v2.so
libnn_yolo_v3.so
libnn_yolo_v4.so
libnn_yoloface.so

I read here that it could come from an old driver, so I updated them by running this: Upgrade System | Khadas Documentation, but the issue persists.

My Galcore version is

-> % sudo dmesg | grep Gal        
[   19.563300] Galcore version 6.4.6.2.5.3.2

and my Amlogic NPU libraries

-> % sudo dpkg -l | grep "aml-npu"
ii  aml-npu                              6.4.6.2.5.3.2                                                arm64        Amlogic NPU libraries.

Has anyone encountered this before?

Thank you all and a great end of the week :slight_smile:
Arthur

Dear all,

I reinstalled the board from scratch (with the same image as before) and I am now able to run the demo

khadas@biped1:~/aml_npu_demo_binaries/detect_demo_picture$ ./detect_demo_x11 -m 2 -p 1080p.bmp 
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
det_set_model success!!

model.width:416
model.height:416
model.channel:3

Det_set_input START
Det_set_input END
Det_get_result START
Det_get_result END

resultData.detect_num=1
result type is 2
i:1 left:419.831 right:1464 top:1.80045 bottom:1080
left:429.831 top-10:40
Unable to init server: Could not connect: Connection refused

(Image Window:6529): Gtk-WARNING **: 15:28:12.976: cannot open display: 

My issue is now fixed, thank you!

2 Likes