From a0f82596144ffe3c6d91d1a6feb28ffeac1a11b3 Mon Sep 17 00:00:00 2001 From: zifeng-radxa Date: Sun, 26 Jan 2025 15:11:36 +0800 Subject: [PATCH] docs: add RK356X NPU enable full steps signed-off-by: "Morgan ZHANG" --- docs/common/dev/_rknn-install.mdx | 4 ++-- docs/common/dev/_rknn-toolkit-lite2-yolov5.mdx | 4 ++-- docs/common/dev/_rknn-toolkit2.mdx | 6 ++++++ docs/common/dev/_rknn-ultralytics.mdx | 4 ++-- .../current/common/dev/_rknn-install.mdx | 2 +- .../current/common/dev/_rknn-toolkit-lite2-yolov5.mdx | 5 +++-- .../current/common/dev/_rknn-toolkit2.mdx | 6 ++++++ .../current/common/dev/_rknn-ultralytics.mdx | 4 ++-- 8 files changed, 24 insertions(+), 11 deletions(-) diff --git a/docs/common/dev/_rknn-install.mdx b/docs/common/dev/_rknn-install.mdx index 54b7f9a48..3f12b59e2 100644 --- a/docs/common/dev/_rknn-install.mdx +++ b/docs/common/dev/_rknn-install.mdx @@ -97,9 +97,9 @@ Rockchip RK3566/RK3568 系列, RK3588 系列, RK3562 系列, RV1103/RV1106 ### 板端安装 RKNN Toolkit Lite2 及其所需依赖 :::tip -RK356X 产品用户使用 NPU 前需要在终端使用 **rsetup** 开启 NPU: sudo rsetup -> overlays -> Enable NPU,最后重启系统。 +RK356X 产品用户使用 NPU 前需要在终端使用 **rsetup** 开启 NPU: `sudo rsetup -> Overlays -> Manage overlays -> Enable NPU`,最后重启系统。 -如 overlays 选项中无 `Enable NPU` 选项,请通过: sudo rsetup -> system -> System Update 升级系统, 重启后执行上述步骤开启 NPU。 +如 overlays 选项中无 `Enable NPU` 选项,请通过: `sudo rsetup -> System -> System Update` 升级系统, 重启后执行上述步骤开启 NPU。 ::: :::info Radxa 官方镜像已默认安装 RKNPU2 及其所需依赖,仅需安装 python3-rknnlite2,如无法运行可尝试注释命令 diff --git a/docs/common/dev/_rknn-toolkit-lite2-yolov5.mdx b/docs/common/dev/_rknn-toolkit-lite2-yolov5.mdx index eeea2ca38..63ecd3eae 100644 --- a/docs/common/dev/_rknn-toolkit-lite2-yolov5.mdx +++ b/docs/common/dev/_rknn-toolkit-lite2-yolov5.mdx @@ -58,9 +58,9 @@ Radxa 已提供预转换好的 `yolov5s_rk35XX.rknn` 模型,用户可直接参 ### 板端推理 YOLOv5 :::tip -RK356X 芯片用户使用 NPU 前需要在终端使用 **rsetup** 开启 NPU: sudo rsetup -> overlays -> Enable NPU,最后重启系统。 +RK356X 产品用户使用 NPU 前需要在终端使用 **rsetup** 开启 NPU: `sudo rsetup -> Overlays -> Manage overlays -> Enable NPU`,最后重启系统。 -如 overlays 选项中无 `Enable NPU` 选项,请通过: sudo rsetup -> system -> System Update 升级系统, 重启后执行上述步骤开启 NPU。 +如 overlays 选项中无 `Enable NPU` 选项,请通过: `sudo rsetup -> System -> System Update` 升级系统, 重启后执行上述步骤开启 NPU。 ::: - (可选)下载 radxa 准备的 yolov5s rknn 模型 diff --git a/docs/common/dev/_rknn-toolkit2.mdx b/docs/common/dev/_rknn-toolkit2.mdx index eaa5e6649..593961167 100644 --- a/docs/common/dev/_rknn-toolkit2.mdx +++ b/docs/common/dev/_rknn-toolkit2.mdx @@ -37,6 +37,12 @@ python test.py +:::tip +RK356X 产品用户使用 NPU 前需要在终端使用 **rsetup** 开启 NPU: `sudo rsetup -> Overlays -> Manage overlays -> Enable NPU`,最后重启系统。 + +如 overlays 选项中无 `Enable NPU` 选项,请通过: `sudo rsetup -> System -> System Update` 升级系统, 重启后执行上述步骤开启 NPU。 +::: + ## 安装 RKNN Toolkit Lite2 及依赖 :::info diff --git a/docs/common/dev/_rknn-ultralytics.mdx b/docs/common/dev/_rknn-ultralytics.mdx index 1f57d8000..36d054df5 100644 --- a/docs/common/dev/_rknn-ultralytics.mdx +++ b/docs/common/dev/_rknn-ultralytics.mdx @@ -49,9 +49,9 @@ ## 板端推理 YOLOv11 :::tip -RK356X 芯片用户使用 NPU 前需要在终端使用 **rsetup** 开启 NPU: sudo rsetup -> overlays -> Enable NPU,最后重启系统。 +RK356X 产品用户使用 NPU 前需要在终端使用 **rsetup** 开启 NPU: `sudo rsetup -> Overlays -> Manage overlays -> Enable NPU`,最后重启系统。 -如 overlays 选项中无 `Enable NPU` 选项,请通过: sudo rsetup -> system -> System Update 升级系统, 重启后执行上述步骤开启 NPU。 +如 overlays 选项中无 `Enable NPU` 选项,请通过: `sudo rsetup -> System -> System Update` 升级系统, 重启后执行上述步骤开启 NPU。 ::: - (可选)下载 radxa 准备的 yolov11n rknn 模型 diff --git a/i18n/en/docusaurus-plugin-content-docs/current/common/dev/_rknn-install.mdx b/i18n/en/docusaurus-plugin-content-docs/current/common/dev/_rknn-install.mdx index 70e4bbe5a..75eaa91e5 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/common/dev/_rknn-install.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/common/dev/_rknn-install.mdx @@ -93,7 +93,7 @@ The overall framework is as follows: ### Install RKNN Toolkit Lite2 and its dependencies on the board :::tip -For users of RK356X products, you need to enable the NPU in the terminal using **rsetup** before using the NPU: `sudo rsetup -> overlays -> Enable NPU`, then restart the system. +For users of RK356X products, you need to enable the NPU in the terminal using **rsetup** before using the NPU: `sudo rsetup -> Overlays -> Manage overlays -> Enable NPU`, then restart the system. If there is no `Enable NPU` option in the overlays options, please update the system via: `sudo rsetup -> system -> System Update`, restart, and execute the above steps to enable the NPU. ::: diff --git a/i18n/en/docusaurus-plugin-content-docs/current/common/dev/_rknn-toolkit-lite2-yolov5.mdx b/i18n/en/docusaurus-plugin-content-docs/current/common/dev/_rknn-toolkit-lite2-yolov5.mdx index 5ff6b045e..8548631dc 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/common/dev/_rknn-toolkit-lite2-yolov5.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/common/dev/_rknn-toolkit-lite2-yolov5.mdx @@ -57,8 +57,9 @@ Radxa provides a pre-converted `yolov5s_rk35XX.rknn` model. Users can directly s ### On-Device YOLOv5 Inference :::tip -For RK356X chips, enable the NPU before use: run `sudo rsetup -> overlays -> Enable NPU` and reboot the system. -If the `Enable NPU` option is missing, update the system via `sudo rsetup -> system -> System Update` and repeat the steps. +For users of RK356X products, you need to enable the NPU in the terminal using **rsetup** before using the NPU: `sudo rsetup -> Overlays -> Manage overlays -> Enable NPU`, then restart the system. + +If there is no `Enable NPU` option in the overlays options, please update the system via: `sudo rsetup -> system -> System Update`, restart, and execute the above steps to enable the NPU. ::: - (Optional) Download pre-converted YOLOv5s RKNN models provided by Radxa: diff --git a/i18n/en/docusaurus-plugin-content-docs/current/common/dev/_rknn-toolkit2.mdx b/i18n/en/docusaurus-plugin-content-docs/current/common/dev/_rknn-toolkit2.mdx index 094f4b716..40e117252 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/common/dev/_rknn-toolkit2.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/common/dev/_rknn-toolkit2.mdx @@ -37,6 +37,12 @@ After the conversion model and inference script test.py is run successfully, the +:::tip +For users of RK356X products, you need to enable the NPU in the terminal using **rsetup** before using the NPU: `sudo rsetup -> Overlays -> Manage overlays -> Enable NPU`, then restart the system. + +If there is no `Enable NPU` option in the overlays options, please update the system via: `sudo rsetup -> system -> System Update`, restart, and execute the above steps to enable the NPU. +::: + ## Install RKNN Toolkit Lite2 and dependencies :::info diff --git a/i18n/en/docusaurus-plugin-content-docs/current/common/dev/_rknn-ultralytics.mdx b/i18n/en/docusaurus-plugin-content-docs/current/common/dev/_rknn-ultralytics.mdx index 09f654fab..e50225f48 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/common/dev/_rknn-ultralytics.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/common/dev/_rknn-ultralytics.mdx @@ -49,9 +49,9 @@ Currently, the [Ultralytics](https://docs.ultralytics.com/integrations/rockchip- ## YOLOv11 Inference on Board :::tip -For RK356X chip users, before using the NPU, enable it through the terminal using **rsetup**: `sudo rsetup -> overlays -> Enable NPU`, and then reboot the system. +For users of RK356X products, you need to enable the NPU in the terminal using **rsetup** before using the NPU: `sudo rsetup -> Overlays -> Manage overlays -> Enable NPU`, then restart the system. -If the `Enable NPU` option is missing in overlays, update the system via: `sudo rsetup -> system -> System Update`. Reboot and perform the above steps to enable the NPU. +If there is no `Enable NPU` option in the overlays options, please update the system via: `sudo rsetup -> system -> System Update`, restart, and execute the above steps to enable the NPU. ::: - (Optional) Download the YOLOv11n RKNN model provided by Radxa: