Toybrick

标题: RKNN 在ubuntu18.04上面无法运行模拟器 [打印本页]

作者: anqingcheng    时间: 2020-11-5 12:31
标题: RKNN 在ubuntu18.04上面无法运行模拟器
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    时间: 2020-11-5 14:24
仔细看下rknn-toolkit文档,你这写了是在板子上运行,当然就不能跑模拟器了。
runtime不一样
作者: anqingcheng    时间: 2020-11-5 14:36
在虚拟机中运行改如何配置?

* 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 []






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