I did not make any changes to Makefile. Last week when I worked on this, I could generate the .so file, it’s unfortunate that now I am unable to generate that file.
@numbqq I tried the inception demo and it works fine with me. But here I am not generating any .so or .nb file. I am using the current existing file in the demo.
In the demo when I tried working with detect_demo_picture, I got the following output:
Picture : khadas@Khadas:~/test/aml_npu_demo_binaries/detect_demo_picture$ sudo ./INSTALL
khadas@Khadas:~/test/aml_npu_demo_binaries/detect_demo_picture$ ./detect_demo_x11 2 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
But, my question is last week when I tried to build my own custom model, i could generate the .so file.
I have not made any changes to the Make file or anything. Now, I am not able to generate .so file in bin_r directory.
Please see the output below:
khadas@Khadas:~/aml_npu_app/DDK_6.4.3/detect_library/model_code/detect_yolo_v3$ ./build_vx.sh
COMPILE /home/khadas/aml_npu_app/DDK_6.3.3.4/detect_library/model_code/detect_yolo_v3/yolov3_process.c
COMPILE /home/khadas/aml_npu_app/DDK_6.3.3.4/detect_library/model_code/detect_yolo_v3/vnn_yolov3.c
vnn_yolov3.c: In function ‘vnn_CreateYolov3’:
vnn_yolov3.c:145:29: warning: unused variable ‘data’ [-Wunused-variable]
145 | uint8_t * data;
| ^~~~
At top level:
vnn_yolov3.c:94:17: warning: ‘load_data’ defined but not used [-Wunused-function]
94 | static uint8_t* load_data
| ^~~~~~~~~
COMPILE /home/khadas/aml_npu_app/DDK_6.3.3.4/detect_library/model_code/detect_yolo_v3/yolo_v3.c
/usr/bin/ld: cannot find -lCLC
collect2: error: ld returned 1 exit status
make: *** [makefile.linux:47: bin_r/libnn_yolo_v3.so] Error 1
I have checked this image, I can build without problems.
khadas@Khadas:~/aml_npu_app/DDK_6.4.4.3/detect_library/model_code/detect_yolo_v3$ ./build_vx.sh
COMPILE /home/khadas/aml_npu_app/DDK_6.3.3.4/detect_library/model_code/detect_yolo_v3/yolov3_process.c
COMPILE /home/khadas/aml_npu_app/DDK_6.3.3.4/detect_library/model_code/detect_yolo_v3/vnn_yolov3.c
vnn_yolov3.c: In function ‘vnn_CreateYolov3’:
vnn_yolov3.c:145:29: warning: unused variable ‘data’ [-Wunused-variable]
145 | uint8_t * data;
| ^~~~
At top level:
vnn_yolov3.c:94:17: warning: ‘load_data’ defined but not used [-Wunused-function]
94 | static uint8_t* load_data
| ^~~~~~~~~
COMPILE /home/khadas/aml_npu_app/DDK_6.3.3.4/detect_library/model_code/detect_yolo_v3/yolo_v3.c
make: Nothing to be done for 'all'.
khadas@Khadas:~/aml_npu_app/DDK_6.4.4.3/detect_library/model_code/detect_yolo_v3$ ls bin_r/*.so
bin_r/libnn_yolo_v3.so
khadas@Khadas:~/aml_npu_app/DDK_6.4.4.3/detect_library/model_code/detect_yolo_v3$
@numbqq Please let me know when will the new document be uploaded. Also it would be great it you can give a detailed explanation on how to run MobileNet model on VIM3; just like yolov3 tutorial.
@numbqq Thank you fro your help. @Frank
I am getting an error for my custom model. Can you please suggest me what needs to be changed in order to overcome the error? I followed the same procedure as mentioned in the khadas website.
I have one doubt as my number of classes is 1, I have set the following parameters:
num_class=1;
coco_names[] = {“holes”};
I hope I have set the right parameters above. Please let me know if I am wrong.
@Frank@numbqq I decided to check and install the reuirements again to build the code using the SDK tool. During this process, I read in the document that, Python requires version 3.5.2. I got to know that in my system, Python version is 3.6.9. Does this cause any problem? Please find the attached screenshot.
@Frank I can run the demo without any problem. After demo started to work, I have just started to follow your guide and I am trying to convert my own yolov3 model. I have replaced the .cfg file and .weights file and have followed every instrcution as per the manual. Yet, I am not able to use the NPU.