Depth-Anything-V2: Optimized for Qualcomm Devices
Depth Anything is designed for estimating depth at each point in an image.
This is based on the implementation of Depth-Anything-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.45, ONNX Runtime 1.27.1 | Download |
| ONNX | w8a16 | Universal | QAIRT 2.45, ONNX Runtime 1.27.1 | Download |
| QNN_DLC | float | Universal | QAIRT 2.45 | Download |
| QNN_DLC | w8a16 | Universal | QAIRT 2.45 | Download |
| TFLITE | float | Universal | QAIRT 2.45 | Download |
For more device-specific assets and performance metrics, visit Depth-Anything-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 Depth-Anything-V2 on GitHub for usage instructions.
Model Details
Model Type: Model_use_case.depth_estimation
Model Stats:
- Input resolution: 518x518
- Model checkpoint: DepthAnything_V2_Small
- Model size (float): 94.3 MB
- Number of parameters: 24.7M
Performance Summary
| Model | Runtime | Precision | Chipset | Inference Time (ms) | Peak Memory Range (MB) | Primary Compute Unit |
|---|---|---|---|---|---|---|
| Depth-Anything-V2 | ONNX | float | Snapdragon® X2 Elite | 19.377 ms | 5 - 5 MB | NPU |
| Depth-Anything-V2 | ONNX | float | Snapdragon® X Elite | 49.016 ms | 48 - 48 MB | NPU |
| Depth-Anything-V2 | ONNX | float | Snapdragon® 8 Gen 3 Mobile | 36.064 ms | 0 - 472 MB | NPU |
| Depth-Anything-V2 | ONNX | float | Snapdragon® 8 Gen 1 Mobile | 85.864 ms | 3 - 478 MB | NPU |
| Depth-Anything-V2 | ONNX | float | Qualcomm® Dragonwing™ IQ-8275 | 56.864 ms | 3 - 9 MB | NPU |
| Depth-Anything-V2 | ONNX | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 47.41 ms | 0 - 55 MB | NPU |
| Depth-Anything-V2 | ONNX | float | Qualcomm® QCS8450 | 85.864 ms | 3 - 478 MB | NPU |
| Depth-Anything-V2 | ONNX | float | Qualcomm® Dragonwing™ IQ-9075 | 55.382 ms | 3 - 9 MB | NPU |
| Depth-Anything-V2 | ONNX | float | Qualcomm® Dragonwing™ IQ-X7181 | 49.016 ms | 48 - 48 MB | NPU |
| Depth-Anything-V2 | ONNX | float | Qualcomm® Dragonwing™ Q-8750 | 25.353 ms | 2 - 366 MB | NPU |
| Depth-Anything-V2 | ONNX | float | Snapdragon® 8 Elite Mobile | 25.353 ms | 2 - 366 MB | NPU |
| Depth-Anything-V2 | ONNX | float | Snapdragon® 8 Elite Gen 5 Mobile | 18.854 ms | 2 - 371 MB | NPU |
| Depth-Anything-V2 | ONNX | w8a16 | Snapdragon® X2 Elite | 12.261 ms | 4 - 4 MB | NPU |
| Depth-Anything-V2 | ONNX | w8a16 | Snapdragon® X Elite | 28.642 ms | 28 - 28 MB | NPU |
| Depth-Anything-V2 | ONNX | w8a16 | Snapdragon® 8 Gen 3 Mobile | 20.138 ms | 3 - 654 MB | NPU |
| Depth-Anything-V2 | ONNX | w8a16 | Snapdragon® 8 Gen 1 Mobile | 44.926 ms | 3 - 527 MB | NPU |
| Depth-Anything-V2 | ONNX | w8a16 | Qualcomm® Dragonwing™ QCS6490 | 106.936 ms | 2 - 5 MB | NPU |
| Depth-Anything-V2 | ONNX | w8a16 | Qualcomm® Dragonwing™ IQ-8275 | 26.434 ms | 2 - 6 MB | NPU |
| Depth-Anything-V2 | ONNX | w8a16 | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 28.416 ms | 0 - 34 MB | NPU |
| Depth-Anything-V2 | ONNX | w8a16 | Qualcomm® QCS8450 | 44.926 ms | 3 - 527 MB | NPU |
| Depth-Anything-V2 | ONNX | w8a16 | Qualcomm® Dragonwing™ IQ-9075 | 28.252 ms | 2 - 5 MB | NPU |
| Depth-Anything-V2 | ONNX | w8a16 | Qualcomm® Dragonwing™ IQ-X7181 | 28.642 ms | 28 - 28 MB | NPU |
| Depth-Anything-V2 | ONNX | w8a16 | Qualcomm® Dragonwing™ Q-6690 | 222.528 ms | 0 - 599 MB | NPU |
| Depth-Anything-V2 | ONNX | w8a16 | Qualcomm® Dragonwing™ Q-7790 | 35.066 ms | 3 - 593 MB | NPU |
| Depth-Anything-V2 | ONNX | w8a16 | Qualcomm® Dragonwing™ Q-8750 | 15.248 ms | 1 - 431 MB | NPU |
| Depth-Anything-V2 | ONNX | w8a16 | Snapdragon® 8 Elite Mobile | 15.248 ms | 1 - 431 MB | NPU |
| Depth-Anything-V2 | ONNX | w8a16 | Snapdragon® 8 Elite Gen 5 Mobile | 12.434 ms | 1 - 439 MB | NPU |
| Depth-Anything-V2 | ONNX | w8a16 | Snapdragon® 7 Gen 4 Mobile | 35.066 ms | 3 - 593 MB | NPU |
| Depth-Anything-V2 | QNN_DLC | float | Snapdragon® X2 Elite | 20.31 ms | 3 - 3 MB | NPU |
| Depth-Anything-V2 | QNN_DLC | float | Snapdragon® X Elite | 51.384 ms | 3 - 3 MB | NPU |
| Depth-Anything-V2 | QNN_DLC | float | Snapdragon® 8 Gen 3 Mobile | 38.717 ms | 1 - 513 MB | NPU |
| Depth-Anything-V2 | QNN_DLC | float | Snapdragon® 8 Gen 1 Mobile | 92.421 ms | 3 - 487 MB | NPU |
| Depth-Anything-V2 | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-8275 | 57.556 ms | 3 - 10 MB | NPU |
| Depth-Anything-V2 | QNN_DLC | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 51.798 ms | 3 - 5 MB | NPU |
| Depth-Anything-V2 | QNN_DLC | float | Qualcomm® SA8775P | 56.653 ms | 1 - 371 MB | NPU |
| Depth-Anything-V2 | QNN_DLC | float | Qualcomm® SA8650P | 56.653 ms | 1 - 371 MB | NPU |
| Depth-Anything-V2 | QNN_DLC | float | Qualcomm® SA8255P | 56.653 ms | 1 - 371 MB | NPU |
| Depth-Anything-V2 | QNN_DLC | float | Qualcomm® QCS8450 | 92.421 ms | 3 - 487 MB | NPU |
| Depth-Anything-V2 | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-9075 | 56.637 ms | 3 - 9 MB | NPU |
| Depth-Anything-V2 | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-X7181 | 51.384 ms | 3 - 3 MB | NPU |
| Depth-Anything-V2 | QNN_DLC | float | Qualcomm® Dragonwing™ Q-8750 | 24.84 ms | 3 - 387 MB | NPU |
| Depth-Anything-V2 | QNN_DLC | float | Qualcomm® SA7255P | 142.275 ms | 1 - 387 MB | NPU |
| Depth-Anything-V2 | QNN_DLC | float | Qualcomm® SA8295P | 82.707 ms | 0 - 364 MB | NPU |
| Depth-Anything-V2 | QNN_DLC | float | Snapdragon® 8 Elite Mobile | 24.84 ms | 3 - 387 MB | NPU |
| Depth-Anything-V2 | QNN_DLC | float | Snapdragon® 8 Elite Gen 5 Mobile | 19.783 ms | 3 - 385 MB | NPU |
| Depth-Anything-V2 | QNN_DLC | w8a16 | Snapdragon® X2 Elite | 71.112 ms | 2 - 2 MB | NPU |
| Depth-Anything-V2 | QNN_DLC | w8a16 | Snapdragon® X Elite | 138.725 ms | 2 - 2 MB | NPU |
| Depth-Anything-V2 | QNN_DLC | w8a16 | Snapdragon® 8 Gen 3 Mobile | 114.219 ms | 0 - 2299 MB | NPU |
| Depth-Anything-V2 | QNN_DLC | w8a16 | Qualcomm® Dragonwing™ IQ-8275 | 135.962 ms | 2 - 6 MB | NPU |
| Depth-Anything-V2 | QNN_DLC | w8a16 | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 141.963 ms | 2 - 5 MB | NPU |
| Depth-Anything-V2 | QNN_DLC | w8a16 | Qualcomm® SA8775P | 140.741 ms | 2 - 2002 MB | NPU |
| Depth-Anything-V2 | QNN_DLC | w8a16 | Qualcomm® SA8650P | 140.741 ms | 2 - 2002 MB | NPU |
| Depth-Anything-V2 | QNN_DLC | w8a16 | Qualcomm® SA8255P | 140.741 ms | 2 - 2002 MB | NPU |
| Depth-Anything-V2 | QNN_DLC | w8a16 | Qualcomm® Dragonwing™ IQ-9075 | 137.268 ms | 4 - 7 MB | NPU |
| Depth-Anything-V2 | QNN_DLC | w8a16 | Qualcomm® Dragonwing™ IQ-X7181 | 138.725 ms | 2 - 2 MB | NPU |
| Depth-Anything-V2 | QNN_DLC | w8a16 | Qualcomm® Dragonwing™ Q-8750 | 93.429 ms | 1 - 2015 MB | NPU |
| Depth-Anything-V2 | QNN_DLC | w8a16 | Qualcomm® SA7255P | 258.549 ms | 2 - 2002 MB | NPU |
| Depth-Anything-V2 | QNN_DLC | w8a16 | Snapdragon® 8 Elite Mobile | 93.429 ms | 1 - 2015 MB | NPU |
| Depth-Anything-V2 | QNN_DLC | w8a16 | Snapdragon® 8 Elite Gen 5 Mobile | 81.712 ms | 2 - 2019 MB | NPU |
| Depth-Anything-V2 | TFLITE | float | Snapdragon® 8 Gen 3 Mobile | 38.842 ms | 1 - 522 MB | NPU |
| Depth-Anything-V2 | TFLITE | float | Snapdragon® 8 Gen 1 Mobile | 93.029 ms | 2 - 490 MB | NPU |
| Depth-Anything-V2 | TFLITE | float | Qualcomm® Dragonwing™ IQ-8275 | 57.613 ms | 1 - 58 MB | NPU |
| Depth-Anything-V2 | TFLITE | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 50.904 ms | 1 - 11 MB | NPU |
| Depth-Anything-V2 | TFLITE | float | Qualcomm® SA8775P | 56.656 ms | 1 - 379 MB | NPU |
| Depth-Anything-V2 | TFLITE | float | Qualcomm® SA8650P | 56.656 ms | 1 - 379 MB | NPU |
| Depth-Anything-V2 | TFLITE | float | Qualcomm® SA8255P | 56.656 ms | 1 - 379 MB | NPU |
| Depth-Anything-V2 | TFLITE | float | Qualcomm® QCS8450 | 93.029 ms | 2 - 490 MB | NPU |
| Depth-Anything-V2 | TFLITE | float | Qualcomm® Dragonwing™ IQ-9075 | 56.67 ms | 1 - 58 MB | NPU |
| Depth-Anything-V2 | TFLITE | float | Qualcomm® Dragonwing™ Q-8750 | 24.833 ms | 0 - 396 MB | NPU |
| Depth-Anything-V2 | TFLITE | float | Qualcomm® SA7255P | 142.437 ms | 1 - 396 MB | NPU |
| Depth-Anything-V2 | TFLITE | float | Qualcomm® SA8295P | 82.447 ms | 1 - 371 MB | NPU |
| Depth-Anything-V2 | TFLITE | float | Snapdragon® 8 Elite Mobile | 24.833 ms | 0 - 396 MB | NPU |
| Depth-Anything-V2 | TFLITE | float | Snapdragon® 8 Elite Gen 5 Mobile | 19.737 ms | 1 - 392 MB | NPU |
License
- The license for the original implementation of Depth-Anything-V2 can be found here.
References
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.
