Firefly开源社区

标题: 3568Android设备,转模型时跑推理崩溃 [打印本页]

作者: liyaotang    时间: 2021-8-5 11:55
标题: 3568Android设备,转模型时跑推理崩溃
本帖最后由 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
复制代码









欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1