Toybrick

标题: 找不到NPU:RKNN_ERR_DEVICE_UNAVAILABLE [打印本页]

作者: chengyake    时间: 2019-4-26 11:42
标题: 找不到NPU:RKNN_ERR_DEVICE_UNAVAILABLE
参考http://t.rock-chips.com/wiki.php?mod=view&id=36安装了所有的包
解压运行参考样例:
[toybrick@localhost examples]$ python3 ssd.py
  from ._conv import register_converters as _register_converters
--> Loading model
done
--> Building model
done
--> Init runtime environment
done
--> Running model
E NPUTransfer: Transfer interface open failed!, ret = -4
E Catch exception when init model!
T Traceback (most recent call last):
T   File "rknn/api/rknn_base.py", line 625, in rknn.api.rknn_base.RKNNBase.inference
T   File "rknn/api/rknn_runtime.py", line 275, in rknn.api.rknn_runtime.RKNNRuntime.build_graph
T Exception: RKNN init failed. error code: RKNN_ERR_DEVICE_UNAVAILABLE
done


按照论坛信息,NPU的USB id是1808, 而我两块板子,实际lsusb查看都是180a:
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 007: 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 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 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


npu_powerctl命令倒也能运行,只是总是提示找不到NPU, 请问是什么情况。

求助,急急急!

作者: zhangzj    时间: 2019-4-26 14:20
更新一下NPU相关库试试
  sudo dnf clean all
  sudo dnf update
作者: chengyake    时间: 2019-4-26 15:03

原来,真相如此简单

多谢! 已解决




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