好的,我发一下作者: 18792752963 时间: 2020-12-22 15:44
运行现象作者: 18792752963 时间: 2020-12-22 15:50
Error processing line 1 of /home/yangziyi/.local/lib/python3.6/site-packages/ruamel.yaml-0.15.81-py3.6-nspkg.pth:
Traceback (most recent call last):
File "/usr/lib/python3.6/site.py", line 174, in addpackage
exec(line)
File "<string>", line 1, in <module>
File "<frozen importlib._bootstrap>", line 568, in module_from_spec
AttributeError: 'NoneType' object has no attribute 'loader'
Remainder of file ignored
--> Loading model
=====
done
--> Init runtime environment
I NPUTransfer: Starting NPU Transfer Client, Transfer version 2.0.0 (8f9ebbc@2020-04-03T09:12:30)
E RKNNAPI: rknn_init, msg_load_ack fail, ack = 1(ACK_FAIL), expect 0(ACK_SUCC)!
E RKNNAPI: ==============================================
E RKNNAPI: RKNN VERSION:
E RKNNAPI: API: 1.4.0 (b4a8096 build: 2020-08-12 10:15:19)
E RKNNAPI: DRV: 1.4.0 (b4a8096 build: 2020-09-14 11:15:57)
E RKNNAPI: ==============================================
E Catch exception when init runtime!
E Traceback (most recent call last):
E File "rknn/api/rknn_base.py", line 1154, in rknn.api.rknn_base.RKNNBase.init_runtime
E File "rknn/api/rknn_runtime.py", line 356, in rknn.api.rknn_runtime.RKNNRuntime.build_graph
E Exception: RKNN init failed. error code: RKNN_ERR_MODEL_INVALID
E Current device id is: TS018083200400581
E Devices connected:
E ['TS018083200400581']
Init runtime environment failed 作者: 18792752963 时间: 2020-12-22 15:52
>>> from rknn.api import RKNN
>>> rknn = RKNN()
>>> rknn.list_devices()
*************************
all device(s) with ntb mode:
TS018083200400581
*************************
([], ['TS018083200400581'])作者: 18792752963 时间: 2020-12-22 16:04
麻烦看一下,在线等作者: zhangzj 时间: 2020-12-24 08:55
你这错误并不是设备找不到, Exception: RKNN init failed. error code: RKNN_ERR_MODEL_INVALID,可能模型有问题。
把verbose开起来,log比较多,看一下。
用官方的example可以跑吗?作者: 18792752963 时间: 2020-12-25 09:57
官方的示例可以跑作者: 18792752963 时间: 2020-12-25 10:12
Error processing line 1 of /home/yangziyi/.local/lib/python3.6/site-packages/ruamel.yaml-0.15.81-py3.6-nspkg.pth:
Traceback (most recent call last):
File "/usr/lib/python3.6/site.py", line 174, in addpackage
exec(line)
File "<string>", line 1, in <module>
File "<frozen importlib._bootstrap>", line 568, in module_from_spec
AttributeError: 'NoneType' object has no attribute 'loader'
Remainder of file ignored
W Verbose file path is invalid, debug info will not dump to file.
--> Loading model
done
--> Init runtime environment
D target set by user is: rk1808
D Starting ntp or adb, target is RK1808, host is None
D Start ntp...
D npu_transfer_proxy is starting...
I NPUTransfer: Starting NPU Transfer Client, Transfer version 2.0.0 (8f9ebbc@2020-04-03T09:12:30)
D NPUTransfer: Transfer spec = local:transfer_proxy
D NPUTransfer: Transfer interface successfully opened, fd = 14
E RKNNAPI: rknn_init, msg_load_ack fail, ack = 1(ACK_FAIL), expect 0(ACK_SUCC)!
E RKNNAPI: ==============================================
E RKNNAPI: RKNN VERSION:
E RKNNAPI: API: 1.4.0 (b4a8096 build: 2020-08-12 10:15:19)
E RKNNAPI: DRV: 1.4.0 (b4a8096 build: 2020-09-14 11:15:57)
E RKNNAPI: ==============================================
D NPUTransfer: Transfer client closed, fd = 14
E Catch exception when init runtime!
E Traceback (most recent call last):
E File "rknn/api/rknn_base.py", line 1154, in rknn.api.rknn_base.RKNNBase.init_runtime
E File "rknn/api/rknn_runtime.py", line 356, in rknn.api.rknn_runtime.RKNNRuntime.build_graph
E Exception: RKNN init failed. error code: RKNN_ERR_MODEL_INVALID
E Current device id is: None
E Devices connected:
E ['TS018083200400581']
Init runtime environment failed作者: 18792752963 时间: 2020-12-25 15:02
麻烦看到解决一下作者: 18792752963 时间: 2020-12-27 10:39
麻烦看一下下作者: 18792752963 时间: 2020-12-27 10:39
急等 作者: jefferyzhang 时间: 2020-12-28 08:40
RKNN_ERR_MODEL_INVALID 就是转的模型有问题,可以进置顶帖官方rknn群里讨论下。