ONNX Model Zoo

AXERA-TECH/RAFT-stereo

By AXERA-TECH · ↓ 2 · ♥ 0 · Updated 2026-02-04

What's in this repo

This page lists the files in AXERA-TECH/RAFT-stereo, including raft_steoro256x640_r1.onnx, raft_steoro256x640_r4.onnx, raft_steoro384x1280_r4.onnx and more.

  • 4 ONNX models (.onnx files)
  • 36 files, including 21 .png, 6 .axmodel, 4 .onnx, 2 .py, 1 .md, 1 .json
  • Last updated 2026-02-04

ONNX files

File Size Download
ax630c/raft_steoro256x640_r1.onnx — Download
ax630c/raft_steoro256x640_r4.onnx — Download
ax650/raft_steoro256x640_r1.onnx — Download
ax650/raft_steoro384x1280_r4.onnx — Download

How to use

These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.

README

RAFT-Stereo on Axera NPU

This repository contains the RAFT-Stereo model converted for high-performance inference on the Axera NPU.

This version is optimized with w8a16 quantization and is compatible with Pulsar2 version 4.2.

Convert Tools Links

For model conversion and deployment guidance:

Support Platforms

Chips Model Variant Latency (ms)
AX650 raft_steoro256x640_r1.axmodel 20.9
AX650 raft_steoro256x640_r4.axmodel 111.8
Chips Model Variant Latency (ms)
AX630C raft_steoro256x640_r1_npu2.axmodel 317.765
AX630C raft_steoro256x640_r4_npu2.axmodel 825.793
Chips Model Variant Latency (ms)
AX637 raft_steoro256x640_r1_npu1.axmodel 61.033
AX637 raft_steoro256x640_r4_npu1.axmodel 99.094

How to Use

Download the repository and ensure the directory structure is organized as follows:

├── ax630c
│   ├── raft_steoro256x640_r1.onnx
│   ├── raft_steoro256x640_r1_npu2.axmodel
│   ├── raft_steoro256x640_r4.onnx
│   └── raft_steoro256x640_r4_npu2.axmodel
├── ax650
│   ├── raft_steoro256x640_r1.axmodel
│   ├── raft_steoro256x640_r1.onnx
│   ├── raft_steoro384x1280_r4.axmodel
│   └── raft_steoro384x1280_r4.onnx
├── ax637
│   ├── raft_steoro256x640_r1_npu1.axmodel
│   └── raft_steoro256x640_r4_npu1.axmodel
├── examples
│   ├── left
│   │   ├── 000051_11.png
│   │   ├── 000058_11.png
│   │   ├── 000059_10.png
│   │   ├── 000121_10.png
│   │   ├── 000164_10.png
│   │   ├── 000167_11.png
│   │   ├── 000172_11.png
│   │   ├── 000179_10.png
│   │   ├── 000193_10.png
│   │   └── 000195_10.png
│   └── right
│       ├── 000051_11.png
│       ├── 000058_11.png
│       ├── 000059_10.png
│       ├── 000121_10.png
│       ├── 000164_10.png
│       ├── 000167_11.png
│       ├── 000172_11.png
│       ├── 000179_10.png
│       ├── 000193_10.png
│       └── 000195_10.png
├── infer.py
└── infer_onnx.py

Prerequisites

  1. Environment: Ensure you have the required Python environment activated with the following core packages installed:
  1. Model/Data: Ensure the compiled .axmodel, and input stereo pairs are available on the host.

Inference Command

Run the inference script by providing the compiled model, and input data.

python3 infer.py --left examples/left/000051_11.png --right examples/right/000051_11.png --model raft_steoro256x640_r1_npu2.axmodel --width 640 --height 256

Inference with AX630C Host

Results

The model generates a dense disparity map representing the depth of the scene.

(base) root@ax630c:~/data# /python3 infer.py --left examples/left/000051_11.png --right examples/right/000051_11.png --model raft_steoro256x640_r4_npu2.axmodel --width 640 --height 256
[INFO] Available providers:  ['AxEngineExecutionProvider']
[INFO] Using provider: AxEngineExecutionProvider
[INFO] Chip type: ChipType.MC20E
[INFO] VNPU type: VNPUType.DISABLED
[INFO] Engine version: 2.7.2a
[INFO] Model type: 1 (full core)
[INFO] Compiler version: 5.1-patch1-dirty e0fdc66b-dirty
Saved: output-ax.png

Example Visualization

Model info

onnx Axera RAFT-Stereo NPU Stereo-Matching Depth-Estimation Computer-Vision depth-estimation en arxiv:2109.07547 license:apache-2.0 region:us
↓ 2 ♥ 0

Created: 2026-02-03

Updated: 2026-02-04

View on Hugging Face

Files (36)

.gitattributes
README.md
ax630c/raft_steoro256x640_r1.onnx ONNX
ax630c/raft_steoro256x640_r1_npu2.axmodel
ax630c/raft_steoro256x640_r4.onnx ONNX
ax630c/raft_steoro256x640_r4_npu2.axmodel
ax637/raft_steoro256x640_r1_npu1.axmodel
ax637/raft_steoro256x640_r4_npu1.axmodel
ax650/raft_steoro256x640_r1.axmodel
ax650/raft_steoro256x640_r1.onnx ONNX
ax650/raft_steoro384x1280_r4.axmodel
ax650/raft_steoro384x1280_r4.onnx ONNX
config.json
examples/left/000051_11.png
examples/left/000058_11.png
examples/left/000059_10.png
examples/left/000121_10.png
examples/left/000164_10.png
examples/left/000167_11.png
examples/left/000172_11.png
examples/left/000179_10.png
examples/left/000193_10.png
examples/left/000195_10.png
examples/right/000051_11.png
examples/right/000058_11.png
examples/right/000059_10.png
examples/right/000121_10.png
examples/right/000164_10.png
examples/right/000167_11.png
examples/right/000172_11.png
examples/right/000179_10.png
examples/right/000193_10.png
examples/right/000195_10.png
infer.py
infer_onnx.py
output-ax.png

Related models