@大法师 还真的是这个原因,sudo就可以,谢谢~
coolpi@coolpi:~/develop/rknpu2/examples/rknn_api_demo/install/rknn_api_demo_Linux$ export LD_LIBRARY_PATH=./lib
coolpi@coolpi:~/develop/rknpu2/examples/rknn_api_demo/install/rknn_api_demo_Linux$ sudo ./rknn_create_mem_with_rga_demo model/RK3588/mobilenet_v1.rknn model/dog_224x224.jpg
[sudo] password for coolpi:
rknn_api/rknnrt version: 1.4.0 (a10f100eb@2022-09-09T09:07:14), driver version: 0.8.2
model input num: 1, output num: 1
input tensors:
index=0, name=input, n_dims=4, dims=[1, 224, 224, 3], n_elems=150528, size=150528, fmt=NHWC, type=INT8, qnt_type=AFFINE, zp=0, scale=0.007812
output tensors:
index=0, name=MobilenetV1/Predictions/Reshape_1, n_dims=2, dims=[1, 1001, 0, 0], n_elems=1001, size=1001, fmt=UNDEFINED, type=INT8, qnt_type=AFFINE, zp=-128, scale=0.003906
custom string:
rga_api version 1.8.0_[0]
Begin perf ...
0: Elapse Time = 1.97ms, FPS = 508.13
---- Top5 ----
0.984375 - 156
0.007812 - 155
0.003906 - 205
0.000000 - 0
0.000000 - 1
coolpi@coolpi:~/develop/rknpu2/examples/rknn_api_demo/install/rknn_api_demo_Linux$ ./rknn_create_mem_with_rga_demo model/RK3588/mobilenet_v1.rknn model/dog_224x224.jpg
E RKNN: [21:30:43.503] failed to open rknpu module, need to insmod rknpu dirver!
E RKNN: [21:30:43.503] failed to open rknn device!
rknn_init fail! ret=-1