Toybrick

标题: error in init_runtime [打印本页]

作者: kaishi    时间: 2019-11-27 03:11
标题: error in init_runtime

I have changed rknn.init_runtime to rk3399pro in test.py as below:
ret = rknn.init_runtime(target='rk3399pro')

and  run python3 test.py in mobilenet_v1 and got the following error.
Any idea?

--> Init runtime environment
E Using device with adb mode to init runtime, but npu_transfer_proxy is running, it may cause conflict. Please terminate npu_transfer_proxy first.
E Catch exception when init runtime!
E Traceback (most recent call last):
E   File "rknn/api/rknn_base.py", line 768, in rknn.api.rknn_base.RKNNBase.init_runtime
E   File "rknn/api/rknn_runtime.py", line 144, in rknn.api.rknn_runtime.RKNNRuntime.__init__
E   File "rknn/api/rknn_platform_utils.py", line 266, in rknn.api.rknn_platform_utils.start_ntp_or_adb
E Exception: Init runtime environment failed!
E Current device id is: None
E Devices connected:
E ['0123456789ABCDEF']
Init runtime environment failed



作者: jefferyzhang    时间: 2019-11-27 08:25
本帖最后由 jefferyzhang 于 2019-11-27 08:26 编辑

Host is rk3399pro or PC ?

1. If u ran it in PC, target is rk3399pro, init_runtime with target='rk3399pro' is OK
2. if u ran it in rk3399pro, target is local, init_runtime MUST leave parameter null, ret = rknn.init_runtime()
作者: kaishi    时间: 2019-11-27 11:47
Thanks, I will try it.




欢迎光临 Toybrick (https://t.rock-chips.com/) Powered by Discuz! X3.3