Toybrick

标题: 例子程序推理出错 [打印本页]

作者: nantianyan    时间: 2019-5-20 23:18
标题: 例子程序推理出错

之前一个3399pro, 3Gddr的板子是好的

今天进了一个6G的板子,装好python包后,运行测试程序,caffe转换成rknn模型成功,推理的时候出现错误如下,请大侠看看:

E NPUTransfer: Transfer interface open failed!, ret = -4
E Catch exception when init runtime!
T Traceback (most recent call last):
T   File "rknn/api/rknn_base.py", line 506, in rknn.api.rknn_base.RKNNBase.init_runtime
T   File "rknn/api/rknn_runtime.py", line 270, in rknn.api.rknn_runtime.RKNNRuntime.build_graph
T Exception: RKNN init failed. error code: RKNN_ERR_DEVICE_UNAVAILABLE
Init runtime environment failed



作者: jefferyzhang    时间: 2019-5-21 11:28
lsusb看看0x2207:1808 在不在
作者: nantianyan    时间: 2019-5-21 14:36
没有1808
如下:
=======================================
[toybrick@localhost ~]$ lsusb
Bus 003 Device 006: ID 0461:4d81 Primax Electronics, Ltd Dell N889 Optical Mouse
Bus 003 Device 005: ID 1c4f:0c07 SiGma Micro
Bus 003 Device 009: ID 2207:180a
Bus 003 Device 002: 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 002: ID 05e3:0616 Genesys Logic, Inc. hub
Bus 001 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 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

作者: nantianyan    时间: 2019-5-21 15:41

[toybrick@localhost mobilenet_v2]$ rpm -aq rknn-api npuservice
npuservice-1.0.1-1.fc28.aarch64
rknn-api-0.9.5-1.rockchip.fc28.aarch64

运行例子C程序,类似的问题:
[toybrick@localhost tmp]$ ./rknn_ssd
E NPUTransfer: Transfer interface open failed!, ret = -4
rknn_init fail! ret=-3

作者: nantianyan    时间: 2019-5-23 10:18
[toybrick@localhost ~]$ sudo npu_powerctrl -o
set clk_en  1 to 0
set clk_en  0 to 1
powerup
[toybrick@localhost ~]$ [  713.577495] usb 3-1.1: USB disconnect, device number 7
[  713.755744] usb 3-1.1: new high-speed USB device number 8 using xhci-hcd
[  713.832661] usb 3-1.1: New USB device found, idVendor=2207, idProduct=180a
[  713.833314] usb 3-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0

作者: nantianyan    时间: 2019-5-23 10:20
本帖最后由 nantianyan 于 2019-5-23 10:22 编辑

论坛还有其他人也遇到这个问题,没有最后解答:
http://t.rock-chips.com/forum.php?mod=viewthread&tid=395
http://t.rock-chips.com/forum.php?mod=viewthread&tid=175

实验过使用1.0.0的rknn-toolkit,实验过烧写wiki最新image

作者: jefferyzhang    时间: 2019-5-23 16:34
2207:180a 说明npu固件出错了,npu没有起来。
你dnf clean all,
然后dnf update 下再试试。
这个一般就是npu的固件没有匹配造成的。





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