Midas-V2: Optimized for Qualcomm Devices
Midas is designed for estimating depth at each point in an image.
This is based on the implementation of Midas-V2 found here. This repository contains pre-exported model files optimized for Qualcomm® devices. You can use the Qualcomm® AI Hub Models library to export with custom configurations. More details on model performance across various devices, can be found here.
Qualcomm AI Hub Models uses Qualcomm AI Hub Workbench to compile, profile, and evaluate this model. Sign up 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 |
| ONNX | w8a8 | Universal | QAIRT 2.51, ONNX Runtime 1.30.0 | Download |
| QNN_DLC | float | Universal | QAIRT 2.51 | Download |
| QNN_DLC | w8a8 | Universal | QAIRT 2.51 | Download |
| TFLITE | float | Universal | QAIRT 2.51 | Download |
| TFLITE | w8a8 | Universal | QAIRT 2.51 | Download |
For more device-specific assets and performance metrics, visit Midas-V2 on Qualcomm® AI Hub.
Option 2: Export with Custom Configurations
Use the Qualcomm® AI Hub Models 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 Midas-V2 on GitHub for usage instructions.
Model Details
Model Type: Model_use_case.depth_estimation
Model Stats:
- Input resolution: 256x256
- Model checkpoint: MiDaS_small
- Model size (float): 63.2 MB
- Model size (w8a8): 16.9 MB
- Number of parameters: 16.6M
Performance Summary
| Model | Runtime | Precision | Chipset | Inference Time (ms) | Peak Memory Range (MB) | Primary Compute Unit |
|---|---|---|---|---|---|---|
| Midas-V2 | ONNX | float | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 1.171 ms | 0 - 159 MB | NPU |
| Midas-V2 | ONNX | float | Snapdragon® 8 Elite For Galaxy Mobile | 1.386 ms | 0 - 157 MB | NPU |
| Midas-V2 | ONNX | float | Snapdragon® X2 Elite | 1.22 ms | 2 - 2 MB | NPU |
| Midas-V2 | ONNX | float | Snapdragon® X Elite | 2.468 ms | 36 - 36 MB | NPU |
| Midas-V2 | ONNX | float | Snapdragon® 8 Gen 3 Mobile | 1.746 ms | 0 - 192 MB | NPU |
| Midas-V2 | ONNX | float | Snapdragon® 8 Gen 1 Mobile | 4.362 ms | 0 - 194 MB | NPU |
| Midas-V2 | ONNX | float | Qualcomm® Dragonwing™ IQ-8275 | 3.515 ms | 0 - 5 MB | NPU |
| Midas-V2 | ONNX | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 2.475 ms | 0 - 41 MB | NPU |
| Midas-V2 | ONNX | float | Qualcomm® QCS8450 | 4.362 ms | 0 - 194 MB | NPU |
| Midas-V2 | ONNX | float | Qualcomm® Dragonwing™ IQ-9075 | 3.379 ms | 0 - 4 MB | NPU |
| Midas-V2 | ONNX | float | Qualcomm® Dragonwing™ IQ-X7181 | 2.468 ms | 36 - 36 MB | NPU |
| Midas-V2 | ONNX | float | Qualcomm® Dragonwing™ Q-8750 | 1.386 ms | 0 - 157 MB | NPU |
| Midas-V2 | ONNX | float | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 1.048 ms | 0 - 48 MB | NPU |
| Midas-V2 | ONNX | float | Snapdragon® 8 Elite Gen 6 Mobile | 1.251 ms | 0 - 157 MB | NPU |
| Midas-V2 | ONNX | w8a8 | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 0.645 ms | 0 - 68 MB | NPU |
| Midas-V2 | ONNX | w8a8 | Snapdragon® 8 Elite For Galaxy Mobile | 0.735 ms | 0 - 66 MB | NPU |
| Midas-V2 | ONNX | w8a8 | Snapdragon® X2 Elite | 0.59 ms | 0 - 0 MB | NPU |
| Midas-V2 | ONNX | w8a8 | Snapdragon® X Elite | 1.287 ms | 18 - 18 MB | NPU |
| Midas-V2 | ONNX | w8a8 | Snapdragon® 8 Gen 3 Mobile | 0.929 ms | 0 - 99 MB | NPU |
| Midas-V2 | ONNX | w8a8 | Snapdragon® 8 Gen 1 Mobile | 1.721 ms | 0 - 100 MB | NPU |
| Midas-V2 | ONNX | w8a8 | Qualcomm® Dragonwing™ QCS6490 | 4.157 ms | 0 - 4 MB | NPU |
| Midas-V2 | ONNX | w8a8 | Qualcomm® Dragonwing™ IQ-8275 | 1.225 ms | 0 - 5 MB | NPU |
| Midas-V2 | ONNX | w8a8 | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 1.285 ms | 0 - 60 MB | NPU |
| Midas-V2 | ONNX | w8a8 | Qualcomm® QCS8450 | 1.721 ms | 0 - 100 MB | NPU |
| Midas-V2 | ONNX | w8a8 | Qualcomm® Dragonwing™ IQ-9075 | 1.398 ms | 0 - 5 MB | NPU |
| Midas-V2 | ONNX | w8a8 | Qualcomm® Dragonwing™ IQ-X7181 | 1.287 ms | 18 - 18 MB | NPU |
| Midas-V2 | ONNX | w8a8 | Qualcomm® Dragonwing™ Q-6690 | 8.484 ms | 0 - 187 MB | NPU |
| Midas-V2 | ONNX | w8a8 | Qualcomm® Dragonwing™ Q-7790 | 1.536 ms | 0 - 178 MB | NPU |
| Midas-V2 | ONNX | w8a8 | Qualcomm® Dragonwing™ Q-8750 | 0.735 ms | 0 - 66 MB | NPU |
| Midas-V2 | ONNX | w8a8 | Snapdragon® 7 Gen 4 Mobile | 1.536 ms | 0 - 178 MB | NPU |
| Midas-V2 | ONNX | w8a8 | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 0.555 ms | 0 - 64 MB | NPU |
| Midas-V2 | ONNX | w8a8 | Snapdragon® 8 Elite Gen 6 Mobile | 0.65 ms | 0 - 64 MB | NPU |
| Midas-V2 | QNN_DLC | float | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 1.191 ms | 0 - 163 MB | NPU |
| Midas-V2 | QNN_DLC | float | Snapdragon® 8 Elite For Galaxy Mobile | 1.442 ms | 0 - 157 MB | NPU |
| Midas-V2 | QNN_DLC | float | Snapdragon® X2 Elite | 1.491 ms | 0 - 0 MB | NPU |
| Midas-V2 | QNN_DLC | float | Snapdragon® X Elite | 2.857 ms | 0 - 0 MB | NPU |
| Midas-V2 | QNN_DLC | float | Snapdragon® 8 Gen 3 Mobile | 1.959 ms | 16 - 205 MB | NPU |
| Midas-V2 | QNN_DLC | float | Snapdragon® 8 Gen 1 Mobile | 5.049 ms | 0 - 190 MB | NPU |
| Midas-V2 | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-8275 | 3.63 ms | 0 - 3 MB | NPU |
| Midas-V2 | QNN_DLC | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 2.674 ms | 0 - 97 MB | NPU |
| Midas-V2 | QNN_DLC | float | Qualcomm® SA8775P | 3.868 ms | 0 - 154 MB | NPU |
| Midas-V2 | QNN_DLC | float | Qualcomm® SA8650P | 3.868 ms | 0 - 154 MB | NPU |
| Midas-V2 | QNN_DLC | float | Qualcomm® SA8255P | 3.868 ms | 0 - 154 MB | NPU |
| Midas-V2 | QNN_DLC | float | Qualcomm® QCS8450 | 5.049 ms | 0 - 190 MB | NPU |
| Midas-V2 | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-9075 | 3.483 ms | 0 - 3 MB | NPU |
| Midas-V2 | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-X7181 | 2.857 ms | 0 - 0 MB | NPU |
| Midas-V2 | QNN_DLC | float | Qualcomm® Dragonwing™ Q-8750 | 1.442 ms | 0 - 157 MB | NPU |
| Midas-V2 | QNN_DLC | float | Qualcomm® SA8295P | 4.876 ms | 0 - 151 MB | NPU |
| Midas-V2 | QNN_DLC | float | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 1.044 ms | 0 - 46 MB | NPU |
| Midas-V2 | QNN_DLC | float | Snapdragon® 8 Elite Gen 6 Mobile | 1.316 ms | 0 - 154 MB | NPU |
| Midas-V2 | QNN_DLC | w8a8 | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 0.556 ms | 0 - 54 MB | NPU |
| Midas-V2 | QNN_DLC | w8a8 | Snapdragon® 8 Elite For Galaxy Mobile | 0.662 ms | 0 - 51 MB | NPU |
| Midas-V2 | QNN_DLC | w8a8 | Snapdragon® X2 Elite | 0.677 ms | 0 - 0 MB | NPU |
| Midas-V2 | QNN_DLC | w8a8 | Snapdragon® X Elite | 1.392 ms | 0 - 0 MB | NPU |
| Midas-V2 | QNN_DLC | w8a8 | Snapdragon® 8 Gen 3 Mobile | 0.915 ms | 0 - 87 MB | NPU |
| Midas-V2 | QNN_DLC | w8a8 | Snapdragon® 8 Gen 1 Mobile | 1.726 ms | 0 - 91 MB | NPU |
| Midas-V2 | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ QCS6490 | 4.438 ms | 1 - 3 MB | NPU |
| Midas-V2 | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ IQ-8275 | 1.182 ms | 1 - 4 MB | NPU |
| Midas-V2 | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 1.259 ms | 0 - 2 MB | NPU |
| Midas-V2 | QNN_DLC | w8a8 | Qualcomm® SA8775P | 1.528 ms | 0 - 53 MB | NPU |
| Midas-V2 | QNN_DLC | w8a8 | Qualcomm® SA8650P | 1.528 ms | 0 - 53 MB | NPU |
| Midas-V2 | QNN_DLC | w8a8 | Qualcomm® SA8255P | 1.528 ms | 0 - 53 MB | NPU |
| Midas-V2 | QNN_DLC | w8a8 | Qualcomm® QCS8450 | 1.726 ms | 0 - 91 MB | NPU |
| Midas-V2 | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ IQ-9075 | 1.355 ms | 1 - 3 MB | NPU |
| Midas-V2 | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ IQ-X7181 | 1.392 ms | 0 - 0 MB | NPU |
| Midas-V2 | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ Q-6690 | 8.893 ms | 0 - 175 MB | NPU |
| Midas-V2 | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ Q-7790 | 1.585 ms | 0 - 168 MB | NPU |
| Midas-V2 | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ Q-8750 | 0.662 ms | 0 - 51 MB | NPU |
| Midas-V2 | QNN_DLC | w8a8 | Qualcomm® SA8295P | 2.117 ms | 0 - 51 MB | NPU |
| Midas-V2 | QNN_DLC | w8a8 | Snapdragon® 7 Gen 4 Mobile | 1.585 ms | 0 - 168 MB | NPU |
| Midas-V2 | QNN_DLC | w8a8 | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 0.466 ms | 0 - 54 MB | NPU |
| Midas-V2 | QNN_DLC | w8a8 | Snapdragon® 8 Elite Gen 6 Mobile | 0.62 ms | 0 - 53 MB | NPU |
| Midas-V2 | TFLITE | float | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 1.194 ms | 0 - 170 MB | NPU |
| Midas-V2 | TFLITE | float | Snapdragon® 8 Elite For Galaxy Mobile | 1.407 ms | 0 - 170 MB | NPU |
| Midas-V2 | TFLITE | float | Snapdragon® 8 Gen 3 Mobile | 1.955 ms | 0 - 220 MB | NPU |
| Midas-V2 | TFLITE | float | Snapdragon® 8 Gen 1 Mobile | 5.038 ms | 0 - 212 MB | NPU |
| Midas-V2 | TFLITE | float | Qualcomm® Dragonwing™ IQ-8275 | 3.64 ms | 0 - 40 MB | NPU |
| Midas-V2 | TFLITE | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 2.643 ms | 0 - 3 MB | NPU |
| Midas-V2 | TFLITE | float | Qualcomm® SA8775P | 22.057 ms | 0 - 27 MB | GPU |
| Midas-V2 | TFLITE | float | Qualcomm® SA8650P | 22.057 ms | 0 - 27 MB | GPU |
| Midas-V2 | TFLITE | float | Qualcomm® SA8255P | 22.057 ms | 0 - 27 MB | GPU |
| Midas-V2 | TFLITE | float | Qualcomm® QCS8450 | 5.038 ms | 0 - 212 MB | NPU |
| Midas-V2 | TFLITE | float | Qualcomm® Dragonwing™ IQ-9075 | 3.497 ms | 0 - 39 MB | NPU |
| Midas-V2 | TFLITE | float | Qualcomm® Dragonwing™ Q-8750 | 1.407 ms | 0 - 170 MB | NPU |
| Midas-V2 | TFLITE | float | Qualcomm® SA7255P | 11.857 ms | 0 - 168 MB | NPU |
| Midas-V2 | TFLITE | float | Qualcomm® SA8295P | 4.9 ms | 0 - 152 MB | NPU |
| Midas-V2 | TFLITE | float | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 1.061 ms | 0 - 62 MB | NPU |
| Midas-V2 | TFLITE | float | Snapdragon® 8 Elite Gen 6 Mobile | 1.312 ms | 0 - 169 MB | NPU |
| Midas-V2 | TFLITE | w8a8 | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 0.496 ms | 0 - 51 MB | NPU |
| Midas-V2 | TFLITE | w8a8 | Snapdragon® 8 Elite For Galaxy Mobile | 0.601 ms | 0 - 49 MB | NPU |
| Midas-V2 | TFLITE | w8a8 | Snapdragon® 8 Gen 3 Mobile | 0.751 ms | 0 - 83 MB | NPU |
| Midas-V2 | TFLITE | w8a8 | Snapdragon® 8 Gen 1 Mobile | 1.433 ms | 0 - 90 MB | NPU |
| Midas-V2 | TFLITE | w8a8 | Qualcomm® Dragonwing™ QCS6490 | 3.814 ms | 1 - 30 MB | NPU |
| Midas-V2 | TFLITE | w8a8 | Qualcomm® Dragonwing™ IQ-8275 | 0.991 ms | 1 - 22 MB | NPU |
| Midas-V2 | TFLITE | w8a8 | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 1.062 ms | 0 - 3 MB | NPU |
| Midas-V2 | TFLITE | w8a8 | Qualcomm® SA8775P | 1.328 ms | 0 - 52 MB | NPU |
| Midas-V2 | TFLITE | w8a8 | Qualcomm® SA8650P | 1.328 ms | 0 - 52 MB | NPU |
| Midas-V2 | TFLITE | w8a8 | Qualcomm® SA8255P | 1.328 ms | 0 - 52 MB | NPU |
| Midas-V2 | TFLITE | w8a8 | Qualcomm® QCS8450 | 1.433 ms | 0 - 90 MB | NPU |
| Midas-V2 | TFLITE | w8a8 | Qualcomm® Dragonwing™ IQ-9075 | 1.089 ms | 1 - 22 MB | NPU |
| Midas-V2 | TFLITE | w8a8 | Qualcomm® Dragonwing™ Q-6690 | 7.562 ms | 0 - 170 MB | NPU |
| Midas-V2 | TFLITE | w8a8 | Qualcomm® Dragonwing™ Q-7790 | 1.333 ms | 0 - 167 MB | NPU |
| Midas-V2 | TFLITE | w8a8 | Qualcomm® Dragonwing™ Q-8750 | 0.601 ms | 0 - 49 MB | NPU |
| Midas-V2 | TFLITE | w8a8 | Qualcomm® SA7255P | 51.141 ms | 0 - 26 MB | GPU |
| Midas-V2 | TFLITE | w8a8 | Qualcomm® SA8295P | 1.84 ms | 0 - 49 MB | NPU |
| Midas-V2 | TFLITE | w8a8 | Snapdragon® 7 Gen 4 Mobile | 1.333 ms | 0 - 167 MB | NPU |
| Midas-V2 | TFLITE | w8a8 | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 0.413 ms | 0 - 50 MB | NPU |
| Midas-V2 | TFLITE | w8a8 | Snapdragon® 8 Elite Gen 6 Mobile | 0.505 ms | 0 - 51 MB | NPU |
License
- The license for the original implementation of Midas-V2 can be found here.
References
- Towards Robust Monocular Depth Estimation: Mixing Datasets for Zero-shot Cross-dataset Transfer
- Source Model Implementation
Community
- Join our AI Hub Slack community to collaborate, post questions and learn more about on-device AI.
- For questions or feedback please reach out to us.
