Overview of the RKNN software stack
masterThe RKNN software stack enables the deployment of AI models to Rockchip NPU hardware. The workflow typically involves two main stages:
- Model Conversion (PC side): Use RKNN-Toolkit2 on a computer to convert trained models (e.g., ONNX) into the specialized
.rknnformat. - Inference (Device side): Deploy the converted
.rknnmodel on a development board using either the RKNN Runtime (C/C++ API) or RKNN-Toolkit-Lite2 (Python API).
Core Components:
- RKNN-Toolkit2: SDK for model conversion, inference, and performance evaluation on PC and Rockchip NPU platforms.
- RKNN-Toolkit-Lite2: Python programming interfaces for Rockchip NPU platforms to deploy and accelerate RKNN models.
- RKNN Runtime: C/C++ programming interfaces for Rockchip NPU platforms to deploy and accelerate RKNN models.
- RKNPU kernel driver: The hardware abstraction layer that interacts directly with the NPU hardware.