YOLO11n-OBB
Before you begin, complete the environment setup:
- Host Model Conversion Tool — install NeuroPilot Converter
- Device Environment Setup — install Neuron SDK
Host-Side Model Conversion
If you only need to run the model on the device, you can skip Host-Side conversion and use pre-compiled DLA models.
Clone the Repository
git clone https://github.com/Ronin-1124/nio12l-model-zoo.git
cd nio12l-model-zoo
Export ONNX
If you haven't set up the yolo-export environment, create it and install dependencies:
conda create -n yolo-export python
conda activate yolo-export
pip install ultralytics
cd examples/yolo11n-obb/convert_model
conda activate yolo-export
yolo export model=yolo11n-obb format=onnx opset=13 imgsz=1024
Cut ONNX
If you haven't installed project dependencies, run this in the project root:
pip install -r requirements.txt
conda activate np8
python cut_onnx.py
Prepare Calibration Data
cd ../../..
python prepare_calibration_data.py path=./datasets/dota128/images/train imgsz=1024
Convert Model
cd examples/yolo11n-obb/convert_model
python convert_mtk_fp32.py
python convert_mtk_int8.py
After conversion, the following files are generated in examples/yolo11n-obb/model/:
int8/yolo11n-obb_mtk_int8.tflitefp32/yolo11n-obb_mtk_fp32.tflite
Device-Side Deployment
Clone the Repository
git clone https://github.com/Ronin-1124/nio12l-model-zoo.git
cd nio12l-model-zoo
Get Models
Method 1: Download Pre-Compiled DLA (Recommended)
wget -P examples/yolo11n-obb/model/int8 https://github.com/Ronin-1124/nio12l-model-zoo/releases/download/v2026.05.11-dla/yolo11n-obb_int8.dla
wget -P examples/yolo11n-obb/model/fp32 https://github.com/Ronin-1124/nio12l-model-zoo/releases/download/v2026.05.11-dla/yolo11n-obb_fp32.dla
Method 2: Convert from Host
Transfer Models
scp yolo11n-obb_mtk_int8.tflite <user>@<device>:/path/to/nio12l-model-zoo/examples/yolo11n-obb/model/int8/
scp yolo11n-obb_mtk_fp32.tflite <user>@<device>:/path/to/nio12l-model-zoo/examples/yolo11n-obb/model/fp32/
Convert to DLA
cd examples/yolo11n-obb/model/int8
ncc-tflite --arch=mdla2.0 -d yolo11n-obb_int8.dla yolo11n-obb_mtk_int8.tflite
cd ../fp32
ncc-tflite --arch=mdla2.0 -d yolo11n-obb_fp32.dla yolo11n-obb_mtk_fp32.tflite --relax-fp32
Build
cd /path/to/nio12l-model-zoo
cmake -S . -B build
cmake --build build -j
Run
Default uses INT8 model with assets/images/boats.jpg:
./build/yolo11n-obb_demo
Use FP32 model:
./build/yolo11n-obb_demo --fp32
Specify images:
./build/yolo11n-obb_demo --image assets/images/boats.jpg
Performance reference (1000-inference average):
| Precision | Time (ms) | FPS |
|---|---|---|
| INT8 | 148.139 | 6.75 |
| FP32 | 173.304 | 5.77 |
Results are saved in outputs/yolo11n-obb/ (vis/ for visualization images, detections/ for JSON).