备注:
用/usr/lib/libnnsdk的aml_module_create 加载 acuity-toolkit/conversion_scripts 产生的nb文件报错哦,
E NN_SDK: [amlnn_init:858]Error:network verifygraph fail
E NN_SDK: [amlnn_init:904]Error:amlnn_init fail
E NN_SDK: [aml_module_create:71]Error:amlnn_init is fail, context is null
aml_module_create 这一套的出错:
nbfile: [dddnuscenes_v1.nb]
E NN_SDK: [amlnn_init:858]Error:network verifygraph fail
E NN_SDK: [amlnn_init:904]Error:amlnn_init fail
E NN_SDK: [aml_module_create:71]Error:amlnn_init is fail, context is null
demo 要跑起来也不容易啊。
cd aml_npu_app-master/DDK_6.3.3.4/detect_library/model_code/detect_yolo_v3
sh build_vx.sh
平台:
vim3 pro
g++ (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
khadas@Khadas:~/projects/aml_npu_app-master$ gcc --version
gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
khadas@Khadas:~/projects/aml_npu_app-master$ make --version
GNU Make 4.2.1
Built for aarch64-unknown-linux-gnu
Copyright (C) 1988-2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
报一堆错
khadas@Khadas:~/projects/aml_npu_app-master/DDK_6.3.3.4/detect_library/model_code/detect_yolo_v3$ ./build_vx.sh
COMPILE /home/khadas/projects/aml_npu_app-master/DDK_6.3.3.4/detect_library/model_code/detect_yolo_v3/yolov3_process.c
In file included from ./include/yolov3_process.h:5,
from yolov3_process.c:7:
./include/nn_detect_common.h:1:1: error: expected identifier or ‘(’ before ‘.’ token
1 | …/…/…/…/…/detect_library/source_code/include/nn_detect_common.h
| ^
In file included from yolov3_process.c:7:
./include/yolov3_process.h:10:24: error: unknown type name ‘input_image_t’
10 | void yolov3_preprocess(input_image_t imageData, uint8_t *ptr);
| ^~~~~~~~~~~~~
./include/yolov3_process.h:11:48: error: unknown type name ‘pDetResult’
11 | void yolov3_postprocess(vsi_nn_graph_t *graph, pDetResult resultData);
| ^~~~~~~~~~
In file included from ./include/yolo_v3.h:5,
from yolov3_process.c:8:
./include/nn_detect_common.h:1:1: error: expected identifier or ‘(’ before ‘.’ token
1 | …/…/…/…/…/detect_library/source_code/include/nn_detect_common.h
| ^
In file included from yolov3_process.c:8:
./include/yolo_v3.h:10:21: error: unknown type name ‘input_image_t’
10 | void model_setinput(input_image_t imageData, uint8_t* data);
| ^~~~~~~~~~~~~
./include/yolo_v3.h:11:1: error: unknown type name ‘det_status_t’
11 | det_status_t model_getresult(pDetResult resultData, uint8_t* data);
| ^~~~~~~~~~~~
./include/yolo_v3.h:11:30: error: unknown type name ‘pDetResult’
11 | det_status_t model_getresult(pDetResult resultData, uint8_t* data);
| ^~~~~~~~~~
./include/yolo_v3.h:12:20: error: unknown type name ‘dev_type’; did you mean ‘dev_t’?
12 | void model_release(dev_type type);
| ^~~~~~~~
| dev_t
yolov3_process.c:13:24: error: unknown type name ‘input_image_t’
13 | void yolov3_preprocess(input_image_t imageData, uint8_t *ptr)
| ^~~~~~~~~~~~~
yolov3_process.c:62:31: error: unknown type name ‘box’
62 | static float box_intersection(box a, box b)
| ^~~
报错如下:
E NN_SDK: [amlnn_init:858]Error:network verifygraph fail
E NN_SDK: [amlnn_init:904]Error:amlnn_init fail
E NN_SDK: [aml_module_create:71]Error:amlnn_init is fail, context is null
E NN_SDK: [aml_module_input_set:85]Error:aml_module_input_set is fail, context is null
E NN_SDK: [aml_module_output_get:120]Error:aml_module_output_get is fail, context is null
dmesg | grep Galcore
[ 19.540365] Galcore version 6.4.6.2