|
【Linux】
3568Android设备,转模型时跑推理崩溃
发表于 2021-8-5 11:55:34
浏览:5571
|
回复:0
打印
只看该作者
[复制链接]
楼主
本帖最后由 liyaotang 于 2021-8-5 15:18 编辑
问题描述: rknn.init_runtime(target='rk3568'),执行失败,日志如下,目前docker里通过adb链接3568设备,但是触发崩溃
固件版本:AIO-3568J_Android11_HDMI_210715
rknn-tool2版本:rknn-toolkit2-1.1.0b5
- Init runtime environment
- *************************
- all device(s) with adb mode:
- 7901XYKX21
- *************************
- (['7901XYKX21'], [])
- I target set by user is: rk3568
- I Starting ntp or adb, target is RK3568, host is None
- I Start adb...
- I Connect to Device success!
- I NPUTransfer: Starting NPU Transfer Client, Transfer version 2.1.0 (b5861e7@2020-11-23T11:50:36)
- D NPUTransfer: Transfer spec = local:transfer_proxy
- D NPUTransfer: ERROR: socket read fd = 3, n = -1: Connection reset by peer
- D NPUTransfer: Transfer client closed, fd = 3
- E RKNNAPI: rknn_init, driver open fail! ret = -9(ERROR_PIPE)!
- E init_runtime: Catch exception when init runtime!
- E init_runtime: Traceback (most recent call last):
- E init_runtime: File "rknn/api/rknn_base.py", line 2483, in rknn.api.rknn_base.RKNNBase.init_runtime
- E init_runtime: File "rknn/api/rknn_runtime.py", line 369, in rknn.api.rknn_runtime.RKNNRuntime.build_graph
- E init_runtime: Exception: RKNN init failed. error code: RKNN_ERR_DEVICE_UNAVAILABLE
- E init_runtime: Current device id is: None
- W init_runtime: ===================== WARN(3) =====================
- Traceback (most recent call last):
- File "test.py", line 92, in <module>
- ret = rknn.init_runtime(target='rk3568')
- File "/usr/local/lib/python3.6/dist-packages/rknn/api/rknn.py", line 324, in init_runtime
- self.rknn_log.e("Current device id is: {}".format(device_id))
- File "rknn/api/rknn_log.py", line 105, in rknn.api.rknn_log.RKNNLog.e
- ValueError: Current device id is: None
复制代码
|
|