rknn-toolkit icon indicating copy to clipboard operation
rknn-toolkit copied to clipboard

预编译模型连接开发板推理报错

Open batchsize opened this issue 6 months ago • 1 comments

之前预编译模型使用python都可以正常推理:

W rknn-toolkit version: 1.7.5
--> Loading model
done
--> Init runtime environment
I NPUTransfer: Starting NPU Transfer Client, Transfer version 2.1.0 (b5861e7@2020-11-23T11:50:36)
D RKNNAPI: ==============================================
D RKNNAPI: RKNN VERSION:
D RKNNAPI:   API: 1.7.5 (bb79b30 build: 2023-06-20 09:54:19)
D RKNNAPI:   DRV: 1.7.3 (c4ea832 build: 2022-08-13 09:29:29)
D RKNNAPI: ==============================================
done
--> eval_perf
========================================================================
                               Performance                              
========================================================================
Average inference Time(us): 2956.56
FPS: 338.23
========================================================================

rknn release done

某个模型预编译后用python 推理报错

W rknn-toolkit version: 1.7.5
--> Loading model
done
--> Init runtime environment
I NPUTransfer: Starting NPU Transfer Client, Transfer version 2.1.0 (b5861e7@2020-11-23T11:50:36)
E RKNNAPI: rknn_init,  recv(MsgLoadAck) fail, -9(ERROR_PIPE) != 368!
E Catch exception when init runtime!
E Traceback (most recent call last):
E   File "rknn/api/rknn_base.py", line 1008, in rknn.api.rknn_base.RKNNBase.init_runtime
E   File "rknn/api/rknn_runtime.py", line 340, in rknn.api.rknn_runtime.RKNNRuntime.build_graph
E Exception: RKNN init failed. error code: RKNN_ERR_DEVICE_UNAVAILABLE
E Please feedback the detailed log file <log_feedback_to_the_rknn_toolkit_dev_team.log> to the RKNN Toolkit development team.
E You can also check github issues: https://github.com/rockchip-linux/rknn-toolkit/issues
E Current device id is: cbc60f143a8a3cbe
E Devices connected:
E ['cbc60f143a8a3cbe']
Init runtime environment failed!

cat log_feedback_to_the_rknn_toolkit_dev_team.log

W rknn-toolkit version: 1.7.5
D Using CPPUTILS: True
D target set by user is: rv1126
D adb path: /usr/bin/adb
D adb path: /usr/bin/adb
D adb path: /usr/bin/adb
D Starting ntp or adb, target is RV1126, host is None
I Device [cbc60f143a8a3cbe] not found in ntb device list.
D Start adb...
D Connect to Device success!
E Catch exception when init runtime!
E Traceback (most recent call last):
E   File "rknn/api/rknn_base.py", line 1008, in rknn.api.rknn_base.RKNNBase.init_runtime
E   File "rknn/api/rknn_runtime.py", line 340, in rknn.api.rknn_runtime.RKNNRuntime.build_graph
E Exception: RKNN init failed. error code: RKNN_ERR_DEVICE_UNAVAILABLE
E Please feedback the detailed log file <log_feedback_to_the_rknn_toolkit_dev_team.log> to the RKNN Toolkit development team.
E You can also check github issues: https://github.com/rockchip-linux/rknn-toolkit/issues

batchsize avatar Jul 03 '25 02:07 batchsize