Toybrick

标题: 运行mobilenetv1例子出现RKNN_ERR_DEVICE_UNAVAILABLE错误 [打印本页]

作者: had_in    时间: 2019-11-14 16:40
标题: 运行mobilenetv1例子出现RKNN_ERR_DEVICE_UNAVAILABLE错误
运行rknn-toolkit1.2.1中的mobilenetv1.py例子出现如下错误:

  1. --> config model
  2. done
  3. --> Loading model
  4. done
  5. --> Building model
  6. done
  7. --> Export RKNN model
  8. done
  9. --> Init runtime environment
  10. E RKNNAPI: rknn_init,  driver open fail!  ret = -12(ERROR_NOT_SUPPORTED)!
  11. E Catch exception when init runtime!
  12. E Traceback (most recent call last):
  13. E   File "rknn/api/rknn_base.py", line 788, in rknn.api.rknn_base.RKNNBase.init_runtime
  14. E   File "rknn/api/rknn_runtime.py", line 303, in rknn.api.rknn_runtime.RKNNRuntime.build_graph
  15. E Exception: RKNN init failed. error code: RKNN_ERR_DEVICE_UNAVAILABLE
  16. E Current device id is: TS018082190800536
  17. E Devices connected:
  18. E Execute adb devices failed, ret code: 127. /usr/local/lib/python3.5/dist-packages/rknn/3rdparty/platform-tools/adb/linux-aarch64/adb: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory

  19. Traceback (most recent call last):
  20.   File "test.py", line 67, in <module>
  21.     ret = rknn.init_runtime(target='rk1808', device_id='TS018082190800536')
  22.   File "/usr/local/lib/python3.5/dist-packages/rknn/api/rknn.py", line 292, in init_runtime
  23.     adb_devices, ntb_devices = self.rknn_base.list_devices()
  24.   File "rknn/api/rknn_base.py", line 730, in rknn.api.rknn_base.RKNNBase.list_devices
  25.   File "rknn/api/rknn_platform_utils.py", line 331, in rknn.api.rknn_platform_utils.get_adb_devices
  26. RuntimeError
复制代码
我的系统环境如下:

平台:rk3399
系统:Ubuntu16.04
python:3.5.2
rknn-toolkit版本:1.2.1计算棒模式:slave


测试文件我仅仅将rknn.init_runtime的入参改成自己神经棒的参数,其他都没有改。
跪求大神指教。。





作者: had_in    时间: 2019-11-14 16:57
另外板子可以识别神经棒
[attach]735[/attach]






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