Toybrick

标题: rknn.bin.list_devices 没有列出设备 [打印本页]

作者: test_wen    时间: 2022-1-8 16:50
标题: rknn.bin.list_devices 没有列出设备
设备是3399proD


每次重启后正常,输入命令python3 -m rknn.bin.list_devices
可以列出设备:
*************************
all device(s) with ntb mode:
7d29104c41c174a5
*************************


过一段时间后,再输入命令python3 -m rknn.bin.list_devices
就变成:
*************************
None devices connected.
*************************

请问这是为何?
dr版本:1.7.0
rknntoolkit:1.7.1版本
toybrick@debian10:~$ pip3 show rknn-toolkit
Name: rknn-toolkit
Version: 1.7.1
Summary: Rockchip Neural Network Toolkit
Home-page: UNKNOWN
Author: Rockchip
Author-email:
License: UNKNOWN
Location: /usr/local/lib/python3.7/dist-packages
Requires: dill, flask, flatbuffers, h5py, lmdb, networkx, numpy, onnx, onnx-tf, opencv-python, Pillow, ply, protobuf, psutil, requests, ruamel.yaml, scipy, sklearn
Required-by:




作者: jefferyzhang    时间: 2022-1-10 09:26
看你的描述可能是npu进入休眠了。
lsusb看下0x2207的设备还在不在
作者: test_wen    时间: 2022-1-11 09:30
toybrick@debian10:~$ python3 -m rknn.bin.list_devices
*************************
None devices connected.
*************************
toybrick@debian10:~$ lsusb
Bus 004 Device 003: ID 05e3:0616 Genesys Logic, Inc. hub
Bus 004 Device 004: ID 2207:0019 Fuzhou Rockchip Electronics Company
Bus 004 Device 002: ID 05e3:0616 Genesys Logic, Inc. hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 013: ID 0000:3825
Bus 003 Device 012: ID 1908:2310 GEMBIRD
Bus 003 Device 011: ID c0f4:01b0
Bus 003 Device 010: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 003 Device 009: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 0bda:d723 Realtek Semiconductor Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
toybrick@debian10:~$

貌似设备是还在的,  ID 2207:0019 Fuzhou Rockchip Electronics Company
作者: jefferyzhang    时间: 2022-1-11 11:19
那你这情况下跑程序会出问题么?
作者: test_wen    时间: 2022-1-11 12:09
会出现

toybrick@debian10:~/work/YOLOv5-RK3399Pro/rknn_detect$ python3 rknn_detect_for_yolov5_original.py
*************************
None devices connected.
*************************
-->loading model : weights/best.rknn
Traceback (most recent call last):
  File "rknn_detect_for_yolov5_original.py", line 262, in <module>
    d = Detector(cfg["opt"])
  File "rknn_detect_for_yolov5_original.py", line 139, in __init__
    model = load_model(model, platform)
  File "rknn_detect_for_yolov5_original.py", line 107, in load_model
    print('--> Init runtime environment on: ' + device_id_dict[npu_id])
KeyError: 0
Exception ignored in: <function Detector.__del__ at 0x7f65a627b8>
Traceback (most recent call last):
  File "rknn_detect_for_yolov5_original.py", line 238, in __del__
  File "rknn_detect_for_yolov5_original.py", line 229, in close
AttributeError: 'Detector' object has no attribute '_rknn'
toybrick@debian10:~/work/YOLOv5-RK3399Pro/rknn_detect$

作者: jefferyzhang    时间: 2022-1-17 19:32
过一两天我们会更新一版NPU驱动,到时候你再测试下。我们会内部先测试下这个问题
作者: test_wen    时间: 2022-2-10 12:17
本帖最后由 test_wen 于 2022-2-10 12:18 编辑

jefferyzhang,你这一两天我等的好辛苦,请快点发布
作者: jefferyzhang    时间: 2022-2-10 14:29
test_wen 发表于 2022-2-10 12:17
jefferyzhang,你这一两天我等的好辛苦,请快点发布

我也没办法啊,我也在等啊。。。
作者: test_wen    时间: 2022-2-21 11:31
本帖最后由 test_wen 于 2022-2-21 11:32 编辑

最后只能重刷系统,问题解决了

@jefferyzhang




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