Toybrick

RKNN 在ubuntu18.04上面无法运行模拟器

anqingcheng

注册会员

积分
73
楼主
发表于 2020-11-5 12:31:57    查看: 8173|回复: 2 | [复制链接]    打印 | 只看该作者
W The target_platform is not set in config, using default target platform rk1808.
W The channel_mean_value filed will not be used in the future!
done
--> Export RKNN model
done
--> 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 1128, in rknn.api.rknn_base.RKNNBase.init_runtime
E   File "rknn/api/rknn_runtime.py", line 168, in rknn.api.rknn_runtime.RKNNRuntime.__init__
E   File "rknn/api/rknn_platform_utils.py", line 296, 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 []
Init runtime environment failed

不插入真机就会报以上错误!插入真机可以运行


回复

使用道具 举报

jefferyzhang

版主

积分
13574
沙发
发表于 2020-11-5 14:24:11 | 只看该作者
仔细看下rknn-toolkit文档,你这写了是在板子上运行,当然就不能跑模拟器了。
runtime不一样
回复

使用道具 举报

anqingcheng

注册会员

积分
73
板凳
 楼主| 发表于 2020-11-5 14:36:17 | 只看该作者
在虚拟机中运行改如何配置?

* daemon not running; starting now at tcp:5037
* daemon started successfully
error: no devices/emulators found
E Connect to Device Failure (-1)
E Catch exception when init runtime!
E Traceback (most recent call last):
E   File "rknn/api/rknn_base.py", line 1128, in rknn.api.rknn_base.RKNNBase.init_runtime
E   File "rknn/api/rknn_runtime.py", line 168, in rknn.api.rknn_runtime.RKNNRuntime.__init__
E   File "rknn/api/rknn_platform_utils.py", line 303, 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:
Init runtime environment failed
E []

回复

使用道具 举报

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

本版积分规则

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


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