Skip to content

Commit

Permalink
Merge pull request #662 from zifeng-radxa/main
Browse files Browse the repository at this point in the history
docs: add RK356X NPU enable full steps
  • Loading branch information
nascs authored Jan 26, 2025
2 parents 2c537c6 + a0f8259 commit 89dad1c
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 11 deletions.
4 changes: 2 additions & 2 deletions docs/common/dev/_rknn-install.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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,如无法运行可尝试注释命令
Expand Down
4 changes: 2 additions & 2 deletions docs/common/dev/_rknn-toolkit-lite2-yolov5.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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 模型
Expand Down
6 changes: 6 additions & 0 deletions docs/common/dev/_rknn-toolkit2.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ python test.py

<TabItem value="board" label="板子端 RKNN Toolkit">

:::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
Expand Down
4 changes: 2 additions & 2 deletions docs/common/dev/_rknn-ultralytics.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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 模型
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
:::
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ After the conversion model and inference script test.py is run successfully, the

<TabItem value="board" label="RKNN Toolkit on 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 -> 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 89dad1c

Please sign in to comment.