Toybrick

error in init_runtime

kaishi

中级会员

积分
306
楼主
发表于 2019-11-27 03:11:05    查看: 8008|回复: 2 | [复制链接]    打印 | 只看该作者

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

版主

积分
13578
沙发
发表于 2019-11-27 08:25:52 | 只看该作者
本帖最后由 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

中级会员

积分
306
板凳
 楼主| 发表于 2019-11-27 11:47:31 | 只看该作者
Thanks, I will try it.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表