rknn-toolkit2

RKNN-Toolkit2 is a development kit that provides users with Rockchip NPU model conversion, inference and performance evaluation on PC platform

提示

Please download the source code before reading this section.

The directory structure as follow:

edge/external/rknn/rknn-toolkit2$ tree -L 1
.
├── doc
├── examples
├── LICENSE
├── packages
└── rknn-toolkit-lite2

The development documents in external/rknn/rknn-toolkit2/doc directory.

edge/external/rknn/rknn-toolkit2/doc$ tree -L 1
.
├── changelog-1.2.0.txt
├── requirements_cp36-1.2.0.txt
├── RKNNToolKit2_OP_Support-1.2.0.md
├── Rockchip_Quick_Start_RKNN_SDK_CN-1.2.0.pdf
├── Rockchip_Quick_Start_RKNN_Toolkit2_CN-1.2.0.pdf
├── Rockchip_Quick_Start_RKNN_Toolkit2_EN-1.2.0.pdf
├── Rockchip_User_Guide_RKNN_Toolkit2_CN-1.2.0.pdf
├── Rockchip_User_Guide_RKNN_Toolkit2_EN-1.2.0.pdf
└── RRKNNToolKit2_API_Difference_With_Toolkit1-1.2.0.md

注意

Please read the document under doc directory first! and related examples refer to the examples source code.

rknn-toolkit-lite2

RKNN Toolkit Lite2 provides a python programming interface for Rockchip NPU platform to help users deploy and use RKNN models exported from RKNN-Toolkit2.

提示

Please download the source code before reading this section.

RKNN Toolkit Lite2 development documents saved in external/rknn/rknn-toolkit2/rknn-toolkit-lite2/doc directory.

edge/external/rknn/rknn-toolkit2/rknn-toolkit-lite2/doc$ tree -L 1
.
├── change_log.txt
├── Rockchip_User_Guide_RKNN_Toolkit_Lite2_V1.2.0_CN.pdf
└── Rockchip_User_Guide_RKNN_Toolkit_Lite2_V1.2.0_EN.pdf

The whl package of RKNN Toolkit Lite2 has been pre-installed in Toybrick Debian11 system.

Execute the following command as a normal user toybrick to upgrade to the latest version.

pip3 install --user --upgrade rknn-toolkit-lite2

rknpu2

rknpu2 provides C programming interface for chip platform with Rockchip NPU, and helps users deploy the RKNN models export from RKNN-Toolkit2 .

提示

Please download the source code before reading this section.

The directory structure as follow:

edge/external/rknn/rknpu2$ tree -L 1
.
├── doc
├── examples
├── LICENSE
├── README.md
├── rknn_server_proxy.md
├── rknpu.mk
└── runtime

rknpu2 development documents saved in external/rknn/rknpu2/doc directory.

edge/external/rknn/rknpu2/doc$ tree -L 1
.
├── Rockchip_Quick_Start_RKNN_SDK_V1.2.0_CN.pdf
├── Rockchip_RKNPU_User_Guide_RKNN_API_V1.2.0_CN.pdf
└── Rockchip_RKNPU_User_Guide_RKNN_API_V1.2.0_EN.pdf

注意

Please read the document under doc directory first! and related examples refer to the examples source code.

rknpu2 development package has been pre-installed in Toybrick Debian 11 system.

Execute the following command to upgrade to the latest version.

sudo apt update
sudo apt -y upgrade