Firefly开源社区

打印 上一主题 下一主题

[Linux] 3568Android设备,转模型时跑推理崩溃

10

积分

0

威望

0

贡献

技术小白

积分
10

3568Android设备,转模型时跑推理崩溃

发表于 2021-8-5 11:55:34      浏览:5579 | 回复:0        打印      只看该作者   [复制链接] 楼主
本帖最后由 liyaotang 于 2021-8-5 15:18 编辑

问题描述: rknn.init_runtime(target='rk3568'),执行失败,日志如下,目前docker里通过adb链接3568设备,但是触发崩溃
固件版本:AIO-3568J_Android11_HDMI_210715
rknn-tool2版本:rknn-toolkit2-1.1.0b5

  1. Init runtime environment
  2. *************************
  3. all device(s) with adb mode:
  4. 7901XYKX21
  5. *************************
  6. (['7901XYKX21'], [])
  7. I target set by user is: rk3568
  8. I Starting ntp or adb, target is RK3568, host is None
  9. I Start adb...
  10. I Connect to Device success!
  11. I NPUTransfer: Starting NPU Transfer Client, Transfer version 2.1.0 (b5861e7@2020-11-23T11:50:36)
  12. D NPUTransfer: Transfer spec = local:transfer_proxy
  13. D NPUTransfer: ERROR: socket read fd = 3, n = -1: Connection reset by peer
  14. D NPUTransfer: Transfer client closed, fd = 3
  15. E RKNNAPI: rknn_init,  driver open fail!  ret = -9(ERROR_PIPE)!
  16. E init_runtime: Catch exception when init runtime!
  17. E init_runtime: Traceback (most recent call last):
  18. E init_runtime:   File "rknn/api/rknn_base.py", line 2483, in rknn.api.rknn_base.RKNNBase.init_runtime
  19. E init_runtime:   File "rknn/api/rknn_runtime.py", line 369, in rknn.api.rknn_runtime.RKNNRuntime.build_graph
  20. E init_runtime: Exception: RKNN init failed. error code: RKNN_ERR_DEVICE_UNAVAILABLE
  21. E init_runtime: Current device id is: None
  22. W init_runtime: ===================== WARN(3) =====================
  23. Traceback (most recent call last):
  24.   File "test.py", line 92, in <module>
  25.     ret = rknn.init_runtime(target='rk3568')
  26.   File "/usr/local/lib/python3.6/dist-packages/rknn/api/rknn.py", line 324, in init_runtime
  27.     self.rknn_log.e("Current device id is: {}".format(device_id))
  28.   File "rknn/api/rknn_log.py", line 105, in rknn.api.rknn_log.RKNNLog.e
  29. ValueError: Current device id is: None
复制代码




回复

使用道具 举报

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

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表