YOLO26

This version of YOLOv26 has been converted to run on the Axera NPU using u8 (INT8) quantization.

Compatible with Pulsar2 version: 4.2.

Convert tools links:

For those who are interested in model conversion, you can try to export axmodel through

Support Platform

Performance Statistics

AX650N (NPU3 Mode)

Tip: The official ONNX (mAP50) data is sourced from the official web(https://platform.ultralytics.com/ultralytics/yolo26/). Actual measurements on coco-val2017 show that the real ONNX accuracy is about 0.4%–0.9% lower, indicating that AXModel's actual quantization loss is even smaller.

Model ONNX (mAP50) AXModel (mAP50) FPS CMM(MB) Latency(ms)
yolo26n 0.557 0.533 726 3.26 1.378
yolo26s 0.646 0.619 316 10.2 3.166
yolo26m 0.698 0.684 116 27.6 8.644
yolo26l 0.715 0.698 90 33.88 11.174
yolo26x 0.741 0.730 41.0 70.4 20.405

AX630C

Model Latency(ms)
yolo26n_npu1.axmodel 10.706
yolo26s_npu1.axmodel 23.188
yolo26n_npu2.axmodel 6.309
yolo26s_npu2.axmodel 16.347

AX637

Model Latency(ms)
yolo26n 4.059
yolo26s 10.933

AX615

Model Latency(ms)
yolo26n_npu1.axmodel 26.995
yolo26s_npu1.axmodel 55.200
yolo26n_npu2.axmodel 10.599
yolo26s_npu2.axmodel 18.600

How to use

Download all files from this repository to the device

root@ax650:~/YOLO26# tree .
|-- ax650
|   |-- yolo26n.axmodel
|   |-- yolo26s.axmodel
|   |-- yolo26m.axmodel
|   |-- yolo26l.axmodel
|   `-- yolo26x.axmodel
|-- ax630c
|   |-- yolo26n_npu1.axmodel
|   |-- yolo26s_npu1.axmodel
|   |-- yolo26n_npu2.axmodel
|   |-- yolo26s_npu2.axmodel
|-- ax637
|   |-- yolo26n.axmodel
|   |-- yolo26s.axmodel
|-- install_650
|   |-- ax_yolo26
|-- bus.jpg
|-- yolo26_out.jpg

Inference with AX650 Host, such as M4N-Dock(爱芯派Pro)

(base) root@ax650:~# ./ax_yolo26 -m ./ax650/yolo26n.axmodel -i BUS.JPG
--------------------------------------
model file : ./ax650/yolo26n.axmodel
image file : BUS.JPG
img_h, img_w : 640 640
--------------------------------------
Engine creating handle is done.
Engine creating context is done.
Engine get io info is done.
Engine alloc io is done.
Engine push input is done.
------------------------------------
Repeat 1 times, avg time 1.38 ms, max_time 1.38 ms, min_time 1.38 ms
--------------------------------------
detection num: 5
 5:  94%, [   6,  233,  801,  752], bus
 0:  94%, [  51,  396,  241,  904], person
 0:  91%, [ 227,  406,  345,  861], person
 0:  80%, [ 670,  389,  809,  876], person
 0:  50%, [   0,  556,   64,  872], person
--------------------------------------

Output image:

ONNX / axmodel inference and COCO bbox evaluation

The scripts under src/ are standalone. Run ONNX inference on the development machine with the project virtual environment. Single-image mode prints each class, score and box, saves a visualization, and can compare dense output tensors. Dataset mode shows progress and writes timing only unless --full-output is set.

# Single-image FP32 ONNX check and dense tensor diagnostics.
../../../venv/bin/python src/infer/yolo26_infer_onnx.py \
  --model yolo26n_640x640.onnx --image bus.jpg \
  --output-dir results/onnx-n-image --debug --dump-npz results/onnx-n-image/dense.npz

# Fast dataset timing: no COCO evaluation files are generated.
../../../venv/bin/python src/infer/yolo26_infer_onnx.py \
  --model yolo26n_640x640.onnx --dataset ../../../datasets/val2017 \
  --output-dir results/onnx-n-speed

# Export one indexed raw candidate archive for COCO evaluation.
../../../venv/bin/python src/infer/yolo26_infer_onnx.py \
  --model yolo26n_640x640.onnx --dataset ../../../datasets/val2017 \
  --output-dir results/onnx-n-eval --full-output

# ONNX-only COCO bbox evaluation; use --subset for an intentional partial set.
../../../venv/bin/python src/tool/evaluate_yolo26.py \
  --onnx-results results/onnx-n-eval \
  --annotations ../../../datasets/annotations_val2017/annotations/instances_val2017.json \
  --output-dir results/onnx-n-metrics

On a compatible board, copy the AX script, selected axmodel, and images as a standalone bundle. AX full output writes the same indexed raw_outputs.npz, manifest.json, and image_ids.json contract as ONNX, so the archive can be copied back to the development machine.

# Single-image AX check with tensor diagnostics.
python3 src/infer/yolo26_infer_axmodel.py \
  --axmodel ax650/yolo26n.axmodel --image bus.jpg \
  --output-dir results/ax-n-image --debug --dump-npz results/ax-n-image/dense.npz

# AX timing and full-output export.
python3 src/infer/yolo26_infer_axmodel.py \
  --axmodel ax650/yolo26n.axmodel --dataset val2017 \
  --output-dir results/ax-n-eval --full-output

# Compare ONNX and AX bbox metrics plus per-image one-to-one consistency.
../../../venv/bin/python src/tool/evaluate_yolo26.py \
  --onnx-results results/onnx-n-eval --ax-results results/ax-n-eval \
  --annotations ../../../datasets/annotations_val2017/annotations/instances_val2017.json \
  --output-dir results/onnx-vs-ax-n

Use --score-thresh for single-image display filtering and --conf for raw candidate export/evaluation filtering. --max-det limits decoded detections per image. --debug, --dump-npz, and --ref-npz are single-image diagnostics; --ref-npz checks tensor names, shape, dtype, and absolute differences. Full-output timing includes candidate selection and archive writes; model loading and warmup are excluded. Evaluation validates model metadata, preprocessing contracts, COCO-80 category IDs, image IDs, filenames, and archive ranges.

Downloads last month
69
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support