Toybrick

标题: TB-RV1126Ds按照rknn教程操作,推理报错 [打印本页]

作者: ltp4399    时间: 2023-2-15 18:25
标题: TB-RV1126Ds按照rknn教程操作,推理报错
刷完最新固件后,系统正常启动,按照TB-RV1126Ds开发板rknn教程安装时均正常,但运行Python DEMO进行推理时报错如下:[attach]2579[/attach]
在调用rknpu中的api进行初始化时,一样会有如下提示:
  1. librknn_runtime version 1.7.0 (0bef7b3 build: 2021-08-18 19:55:01 base: 1131)
  2. [     1] Failed to open device: No such file or directory, Try again...
  3. [     2] Failed to open device: No such file or directory, Try again...
  4. [     3] Failed to open device: No such file or directory, Try again...
  5. [     4] Failed to open device: No such file or directory, Try again...
  6. [     5] _OpenDevice(1091): FATAL: Failed to open device, errno=No such file or directory.
复制代码
我尝试过更新rknpu驱动,重新刷固件等都无法解决。

作者: jefferyzhang    时间: 2023-2-16 09:03
本帖最后由 jefferyzhang 于 2023-2-16 10:35 编辑

所以你是在1126板子上跑一个target=1109的模型?
作者: ltp4399    时间: 2023-2-16 10:37
jefferyzhang 发表于 2023-2-16 09:03
所以你是在1126板子上跑一个target=1109的模型?

这是DEMO里面直接运行的结果,我自己用C++接口出现一样的错误,不管换什么模型都一样,跟target没有关系
作者: ltp4399    时间: 2023-2-16 10:42
jefferyzhang 发表于 2023-2-16 09:03
所以你是在1126板子上跑一个target=1109的模型?

我看了里面的源码,如下所示,这个DEMO是按照教程中执行的,位置在/vendor/etc/model/test.py中,所用模型为rv1109_rv1126目录中,并没有单独的rv1126文件夹,我自己生成的模型,target为rv1126,一样出现这样的错误

[attach]2580[/attach]

作者: ltp4399    时间: 2023-2-16 10:47
本帖最后由 ltp4399 于 2023-2-16 10:48 编辑
jefferyzhang 发表于 2023-2-16 09:03
所以你是在1126板子上跑一个target=1109的模型?

有人遇到同样问题,链接但是我并没有找到update.img在哪
作者: 我是流氓我怕谁    时间: 2023-2-16 11:04
需要安装rknn-rv1126 ,重启后驱动才会加载。
作者: ltp4399    时间: 2023-2-16 11:06
我是流氓我怕谁 发表于 2023-2-16 11:04
需要安装rknn-rv1126 ,重启后驱动才会加载。

我的安装后,重启了还是这样,是不是有其他问题?
作者: ltp4399    时间: 2023-2-16 11:20
本帖最后由 ltp4399 于 2023-2-16 11:22 编辑
我是流氓我怕谁 发表于 2023-2-16 11:04
需要安装rknn-rv1126 ,重启后驱动才会加载。

目前安装、重启、运行demo的输出如下,能否帮忙分析下是哪里问题?
  1. toybrick@debian10:~$ sudo apt install rknn-rv1126
  2. [sudo] password for toybrick:
  3. Reading package lists... Done
  4. Building dependency tree      
  5. Reading state information... Done
  6. The following NEW packages will be installed:
  7.   rknn-rv1126
  8. 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  9. Need to get 0 B/12.8 MB of archives.
  10. After this operation, 113 MB of additional disk space will be used.
  11. perl: warning: Setting locale failed.
  12. perl: warning: Please check that your locale settings:
  13.         LANGUAGE = (unset),
  14.         LC_ALL = (unset),
  15.         LANG = "zh_CN.UTF-8"
  16.     are supported and installed on your system.
  17. perl: warning: Falling back to the standard locale ("C").
  18. locale: Cannot set LC_CTYPE to default locale: No such file or directory
  19. locale: Cannot set LC_MESSAGES to default locale: No such file or directory
  20. locale: Cannot set LC_ALL to default locale: No such file or directory
  21. Selecting previously unselected package rknn-rv1126.
  22. (Reading database ... 30909 files and directories currently installed.)
  23. Preparing to unpack .../rknn-rv1126_1.0.0-1_armhf.deb ...

  24. Progress: [  0%] [....................................................................................]
  25. Unpacking rknn-rv1126 (1.0.0-1) ......................................................................]

  26. Setting up rknn-rv1126 (1.0.0-1) ...###############...................................................]

  27. Progress: [ 60%] [##################################################..................................]
  28. Processing triggers for libc-bin (2.28-10+deb10u1) ...###############################.................]
  29. ldconfig: /lib/arm-linux-gnueabihf/libOpenVX.so.1 is not a symbolic link

  30. toybrick@debian10:~$ sudo reboot

  31. 连接断开
  32. 连接主机...
  33. 连接主机成功
  34. Linux debian10.toybrick 4.19.172 #130 SMP PREEMPT Wed Jun 16 19:25:46 CST 2021 armv7l

  35. The programs included with the Debian GNU/Linux system are free software;
  36. the exact distribution terms for each program are described in the
  37. individual files in /usr/share/doc/*/copyright.

  38. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
  39. permitted by applicable law.
  40. Last login: Thu Feb 16 03:14:21 2023 from 192.168.0.125
  41. toybrick@debian10:~$ python3 /vendor/etc/model/test.py
  42. --> list devices:
  43. *************************
  44. None devices connected.
  45. *************************
  46. done
  47. --> query support target platform
  48. **************************************************
  49. Target platforms filled in RKNN model:         ['RV1109']
  50. Target platforms supported by this RKNN model: ['RV1109', 'RK1109', 'RV1126', 'RK1126']
  51. **************************************************
  52. done
  53. --> Load RKNN model
  54. done
  55. --> Init runtime environment
  56. librknn_runtime version 1.7.0 (0bef7b3 build: 2021-08-18 19:55:01 base: 1131)
  57. [     1] Failed to open device: No such file or directory, Try again...
  58. [     2] Failed to open device: No such file or directory, Try again...
  59. [     3] Failed to open device: No such file or directory, Try again...
  60. [     4] Failed to open device: No such file or directory, Try again...
  61. [     5] _OpenDevice(1091): FATAL: Failed to open device, errno=No such file or directory.
  62. toybrick@debian10:~$
复制代码
在安装过程中出现了“Setting locale failed.”和“No such file or directory”不知道有没有影响

作者: 我是流氓我怕谁    时间: 2023-2-21 11:16
你试下使用root来执行




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