Depth Estimation
PyTorch
android
File size: 7,350 Bytes
63c9f83
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
---
library_name: pytorch
license: bsd-3-clause
tags:
- android
pipeline_tag: depth-estimation

---

![](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/waft_stereo/web-assets/model_demo.png)

# WAFT-Stereo: Optimized for Qualcomm Devices

WAFT-Stereo estimates per-pixel disparity from a rectified stereo pair using warping-based iterative refinement instead of a 4D cost volume.

This is based on the implementation of WAFT-Stereo found [here](https://github.com/princeton-vl/WAFT-Stereo).
This repository contains pre-exported model files optimized for Qualcomm® devices. You can use the [Qualcomm® AI Hub Models](https://github.com/qualcomm/ai-hub-models/blob/v0.67.0/src/qai_hub_models/models/waft_stereo) library to export with custom configurations. More details on model performance across various devices, can be found [here](#performance-summary).

Qualcomm AI Hub Models uses [Qualcomm AI Hub Workbench](https://workbench.aihub.qualcomm.com) to compile, profile, and evaluate this model. [Sign up](https://myaccount.qualcomm.com/signup) to run these models on a hosted Qualcomm® device.

## Getting Started
There are two ways to deploy this model on your device:

### Option 1: Download Pre-Exported Models

Below are pre-exported model assets ready for deployment.

| Runtime | Precision | Chipset | SDK Versions | Download |
|---|---|---|---|---|
| ONNX | float | Universal | QAIRT 2.51, ONNX Runtime 1.30.0 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/waft_stereo/releases/v0.67.0/waft_stereo-onnx-float.zip)

For more device-specific assets and performance metrics, visit **[WAFT-Stereo on Qualcomm® AI Hub](https://aihub.qualcomm.com/models/waft_stereo)**.


### Option 2: Export with Custom Configurations

Use the [Qualcomm® AI Hub Models](https://github.com/qualcomm/ai-hub-models/blob/v0.67.0/src/qai_hub_models/models/waft_stereo) Python library to compile and export the model with your own:
- Custom weights (e.g., fine-tuned checkpoints)
- Custom input shapes
- Target device and runtime configurations

This option is ideal if you need to customize the model beyond the default configuration provided here.

See our repository for [WAFT-Stereo on GitHub](https://github.com/qualcomm/ai-hub-models/blob/v0.67.0/src/qai_hub_models/models/waft_stereo) for usage instructions.

## Model Details

**Model Type:** Model_use_case.depth_estimation

**Model Stats:**
- Input: Rectified stereo pair — left and right RGB images
- Input resolution: 240x320
- Model checkpoint: WAFT-Stereo SynLarge DAv2S-4 (DAv2S-4.pth)
- Output: Disparity map
- Model size (encoder) (float): 177 MB
- Model size (classification) (float): 98.2 MB
- Model size (regression) (float): 262 MB
- Model size (encoder) (mixed_with_float): 53.7 MB
- Model size (classification) (mixed_with_float): 27.6 MB
- Model size (regression) (mixed_with_float): 262 MB

## Performance Summary
| Model | Runtime | Precision | Chipset | Inference Time (ms) | Peak Memory Range (MB) | Primary Compute Unit
|---|---|---|---|---|---|---
| classification | ONNX | float | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 5.676 ms | 3 - 262 MB | NPU
| classification | ONNX | float | Snapdragon® 8 Elite For Galaxy Mobile | 8.22 ms | 3 - 255 MB | NPU
| classification | ONNX | float | Snapdragon® X2 Elite | 6.134 ms | 7 - 7 MB | NPU
| classification | ONNX | float | Snapdragon® X Elite | 14.824 ms | 46 - 46 MB | NPU
| classification | ONNX | float | Snapdragon® 8 Gen 1 Mobile | 26.583 ms | 1 - 340 MB | NPU
| classification | ONNX | float | Qualcomm® Dragonwing™ IQ-8275 | 17.434 ms | 7 - 18 MB | NPU
| classification | ONNX | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 14.232 ms | 0 - 274 MB | NPU
| classification | ONNX | float | Qualcomm® QCS8450 | 26.583 ms | 1 - 340 MB | NPU
| classification | ONNX | float | Qualcomm® Dragonwing™ IQ-9075 | 18.196 ms | 7 - 17 MB | NPU
| classification | ONNX | float | Qualcomm® Dragonwing™ IQ-X7181 | 14.824 ms | 46 - 46 MB | NPU
| classification | ONNX | float | Qualcomm® Dragonwing™ Q-8750 | 8.22 ms | 3 - 255 MB | NPU
| classification | ONNX | float | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 4.724 ms | 7 - 263 MB | NPU
| classification | ONNX | float | Snapdragon® 8 Elite Gen 6 Mobile | 7.329 ms | 0 - 246 MB | NPU
| encoder | ONNX | float | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 9.78 ms | 22 - 347 MB | NPU
| encoder | ONNX | float | Snapdragon® 8 Elite For Galaxy Mobile | 13.58 ms | 25 - 342 MB | NPU
| encoder | ONNX | float | Snapdragon® X2 Elite | 10.625 ms | 34 - 34 MB | NPU
| encoder | ONNX | float | Snapdragon® X Elite | 24.457 ms | 53 - 53 MB | NPU
| encoder | ONNX | float | Snapdragon® 8 Gen 1 Mobile | 36.427 ms | 1 - 413 MB | NPU
| encoder | ONNX | float | Qualcomm® Dragonwing™ IQ-8275 | 27.64 ms | 22 - 28 MB | NPU
| encoder | ONNX | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 23.56 ms | 0 - 328 MB | NPU
| encoder | ONNX | float | Qualcomm® QCS8450 | 36.427 ms | 1 - 413 MB | NPU
| encoder | ONNX | float | Qualcomm® Dragonwing™ IQ-9075 | 28.98 ms | 24 - 29 MB | NPU
| encoder | ONNX | float | Qualcomm® Dragonwing™ IQ-X7181 | 24.457 ms | 53 - 53 MB | NPU
| encoder | ONNX | float | Qualcomm® Dragonwing™ Q-8750 | 13.58 ms | 25 - 342 MB | NPU
| encoder | ONNX | float | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 7.773 ms | 25 - 342 MB | NPU
| encoder | ONNX | float | Snapdragon® 8 Elite Gen 6 Mobile | 11.657 ms | 5 - 310 MB | NPU
| regression | ONNX | float | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 22.557 ms | 13 - 442 MB | NPU
| regression | ONNX | float | Snapdragon® 8 Elite For Galaxy Mobile | 31.632 ms | 12 - 425 MB | NPU
| regression | ONNX | float | Snapdragon® X2 Elite | 23.062 ms | 23 - 23 MB | NPU
| regression | ONNX | float | Snapdragon® X Elite | 50.047 ms | 45 - 45 MB | NPU
| regression | ONNX | float | Snapdragon® 8 Gen 1 Mobile | 85.479 ms | 1 - 655 MB | NPU
| regression | ONNX | float | Qualcomm® Dragonwing™ IQ-8275 | 59.165 ms | 10 - 25 MB | NPU
| regression | ONNX | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 49.099 ms | 18 - 22 MB | NPU
| regression | ONNX | float | Qualcomm® QCS8450 | 85.479 ms | 1 - 655 MB | NPU
| regression | ONNX | float | Qualcomm® Dragonwing™ IQ-9075 | 60.144 ms | 11 - 25 MB | NPU
| regression | ONNX | float | Qualcomm® Dragonwing™ IQ-X7181 | 50.047 ms | 45 - 45 MB | NPU
| regression | ONNX | float | Qualcomm® Dragonwing™ Q-8750 | 31.632 ms | 12 - 425 MB | NPU
| regression | ONNX | float | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 19.349 ms | 24 - 439 MB | NPU
| regression | ONNX | float | Snapdragon® 8 Elite Gen 6 Mobile | 26.566 ms | 19 - 405 MB | NPU

## License
* The license for the original implementation of WAFT-Stereo can be found
  [here](https://github.com/princeton-vl/WAFT-Stereo/blob/main/LICENSE).

## References
* [WAFT-Stereo: Warping-Alone Field Transforms for Stereo Matching](https://arxiv.org/abs/2603.24836)
* [Source Model Implementation](https://github.com/princeton-vl/WAFT-Stereo)

## Community
* Join [our AI Hub Slack community](https://aihub.qualcomm.com/community/slack) to collaborate, post questions and learn more about on-device AI.
* For questions or feedback please [reach out to us](mailto:ai-hub-support@qti.qualcomm.com).