Depth-Anything: 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 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.25.0 | Download |
| ONNX | w8a16 | Universal | QAIRT 2.45, ONNX Runtime 1.25.0 | 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 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 on GitHub for usage instructions.
Model Details
Model Type: Model_use_case.depth_estimation
Model Stats:
- Model checkpoint: DepthAnything_Small
- Input resolution: 518x518
- Number of parameters: 24.7M
- Model size (float): 94.3 MB
Performance Summary
| Model | Runtime | Precision | Chipset | Inference Time (ms) | Peak Memory Range (MB) | Primary Compute Unit |
|---|---|---|---|---|---|---|
| Depth-Anything | ONNX | float | Snapdragon® X2 Elite | 18.985 ms | 210 - 210 MB | NPU |
| Depth-Anything | ONNX | float | Snapdragon® X Elite | 48.909 ms | 146 - 146 MB | NPU |
| Depth-Anything | ONNX | float | Snapdragon® 8 Gen 3 Mobile | 35.743 ms | 5 - 468 MB | NPU |
| Depth-Anything | ONNX | float | Snapdragon® 8 Gen 1 Mobile | 86.023 ms | 6 - 471 MB | NPU |
| Depth-Anything | ONNX | float | Qualcomm® QCS8550 (Proxy) | 47.644 ms | 0 - 56 MB | NPU |
| Depth-Anything | ONNX | float | Qualcomm® QCS8450 | 86.023 ms | 6 - 471 MB | NPU |
| Depth-Anything | ONNX | float | Snapdragon® 8 Elite Mobile | 24.317 ms | 2 - 367 MB | NPU |
| Depth-Anything | ONNX | float | Snapdragon® 8 Elite Gen 5 Mobile | 18.487 ms | 3 - 367 MB | NPU |
| Depth-Anything | ONNX | float | Qualcomm® QCS9075 | 58.569 ms | 4 - 49 MB | NPU |
| Depth-Anything | ONNX | float | Qualcomm® QCS8750 | 24.317 ms | 2 - 367 MB | NPU |
| Depth-Anything | ONNX | float | Qualcomm® QCS7181 | 48.909 ms | 146 - 146 MB | NPU |
| Depth-Anything | ONNX | w8a16 | Snapdragon® X2 Elite | 12.028 ms | 179 - 179 MB | NPU |
| Depth-Anything | ONNX | w8a16 | Snapdragon® X Elite | 27.768 ms | 148 - 148 MB | NPU |
| Depth-Anything | ONNX | w8a16 | Snapdragon® 8 Gen 3 Mobile | 19.021 ms | 3 - 501 MB | NPU |
| Depth-Anything | ONNX | w8a16 | Qualcomm® QCS8550 (Proxy) | 26.995 ms | 0 - 37 MB | NPU |
| Depth-Anything | ONNX | w8a16 | Qualcomm® QCS9075 | 31.693 ms | 2 - 47 MB | NPU |
| Depth-Anything | ONNX | w8a16 | Snapdragon® 8 Elite Gen 5 Mobile | 11.491 ms | 3 - 424 MB | NPU |
| Depth-Anything | ONNX | w8a16 | Snapdragon® 8 Elite Mobile | 14.058 ms | 3 - 421 MB | NPU |
| Depth-Anything | ONNX | w8a16 | Qualcomm® QCM6690 | 297.365 ms | 3 - 640 MB | NPU |
| Depth-Anything | ONNX | w8a16 | Snapdragon® 7 Gen 4 Mobile | 35.566 ms | 3 - 608 MB | NPU |
| Depth-Anything | ONNX | w8a16 | Qualcomm® QCS7790 | 35.566 ms | 3 - 608 MB | NPU |
| Depth-Anything | ONNX | w8a16 | Qualcomm® QCS8750 | 14.058 ms | 3 - 421 MB | NPU |
| Depth-Anything | ONNX | w8a16 | Qualcomm® QCS7181 | 27.768 ms | 148 - 148 MB | NPU |
| Depth-Anything | QNN_DLC | float | Snapdragon® X2 Elite | 20.273 ms | 3 - 3 MB | NPU |
| Depth-Anything | QNN_DLC | float | Snapdragon® X Elite | 51.289 ms | 3 - 3 MB | NPU |
| Depth-Anything | QNN_DLC | float | Snapdragon® 8 Gen 3 Mobile | 38.612 ms | 3 - 514 MB | NPU |
| Depth-Anything | QNN_DLC | float | Snapdragon® 8 Gen 1 Mobile | 92.04 ms | 4 - 487 MB | NPU |
| Depth-Anything | QNN_DLC | float | Qualcomm® QCS8275 | 142.291 ms | 0 - 388 MB | NPU |
| Depth-Anything | QNN_DLC | float | Qualcomm® QCS8550 (Proxy) | 51.062 ms | 3 - 5 MB | NPU |
| Depth-Anything | QNN_DLC | float | Qualcomm® QCS8450 | 92.04 ms | 4 - 487 MB | NPU |
| Depth-Anything | QNN_DLC | float | Snapdragon® 8 Elite Mobile | 24.719 ms | 0 - 384 MB | NPU |
| Depth-Anything | QNN_DLC | float | Qualcomm® SA8295P | 82.58 ms | 0 - 362 MB | NPU |
| Depth-Anything | QNN_DLC | float | Snapdragon® 8 Elite Gen 5 Mobile | 19.658 ms | 3 - 384 MB | NPU |
| Depth-Anything | QNN_DLC | float | Qualcomm® SA7255P | 142.291 ms | 0 - 388 MB | NPU |
| Depth-Anything | QNN_DLC | float | Qualcomm® QCS9075 | 61.896 ms | 3 - 9 MB | NPU |
| Depth-Anything | QNN_DLC | float | Qualcomm® QCS8750 | 24.719 ms | 0 - 384 MB | NPU |
| Depth-Anything | QNN_DLC | float | Qualcomm® QCS7181 | 51.289 ms | 3 - 3 MB | NPU |
| Depth-Anything | QNN_DLC | w8a16 | Snapdragon® X2 Elite | 71.162 ms | 2 - 2 MB | NPU |
| Depth-Anything | QNN_DLC | w8a16 | Snapdragon® X Elite | 137.432 ms | 2 - 2 MB | NPU |
| Depth-Anything | QNN_DLC | w8a16 | Snapdragon® 8 Gen 3 Mobile | 113.078 ms | 0 - 2291 MB | NPU |
| Depth-Anything | QNN_DLC | w8a16 | Qualcomm® QCS8275 | 259.919 ms | 2 - 1998 MB | NPU |
| Depth-Anything | QNN_DLC | w8a16 | Qualcomm® QCS8550 (Proxy) | 149.542 ms | 2 - 5 MB | NPU |
| Depth-Anything | QNN_DLC | w8a16 | Qualcomm® QCS9075 | 142.389 ms | 2 - 5 MB | NPU |
| Depth-Anything | QNN_DLC | w8a16 | Snapdragon® 8 Elite Gen 5 Mobile | 81.547 ms | 2 - 2015 MB | NPU |
| Depth-Anything | QNN_DLC | w8a16 | Snapdragon® 8 Elite Mobile | 93.62 ms | 2 - 2012 MB | NPU |
| Depth-Anything | QNN_DLC | w8a16 | Qualcomm® SA7255P | 259.919 ms | 2 - 1998 MB | NPU |
| Depth-Anything | QNN_DLC | w8a16 | Qualcomm® QCS8750 | 93.62 ms | 2 - 2012 MB | NPU |
| Depth-Anything | QNN_DLC | w8a16 | Qualcomm® QCS7181 | 137.432 ms | 2 - 2 MB | NPU |
| Depth-Anything | TFLITE | float | Snapdragon® 8 Gen 3 Mobile | 39.23 ms | 1 - 517 MB | NPU |
| Depth-Anything | TFLITE | float | Snapdragon® 8 Gen 1 Mobile | 93.506 ms | 1 - 490 MB | NPU |
| Depth-Anything | TFLITE | float | Qualcomm® QCS8275 | 142.52 ms | 1 - 396 MB | NPU |
| Depth-Anything | TFLITE | float | Qualcomm® QCS8550 (Proxy) | 51.746 ms | 1 - 11 MB | NPU |
| Depth-Anything | TFLITE | float | Qualcomm® SA8775P | 362.141 ms | 1 - 28 MB | GPU |
| Depth-Anything | TFLITE | float | Qualcomm® SA8650P | 362.141 ms | 1 - 28 MB | GPU |
| Depth-Anything | TFLITE | float | Qualcomm® SA8255P | 362.141 ms | 1 - 28 MB | GPU |
| Depth-Anything | TFLITE | float | Qualcomm® QCS8450 | 93.506 ms | 1 - 490 MB | NPU |
| Depth-Anything | TFLITE | float | Snapdragon® 8 Elite Mobile | 24.801 ms | 1 - 397 MB | NPU |
| Depth-Anything | TFLITE | float | Qualcomm® SA8295P | 82.528 ms | 1 - 369 MB | NPU |
| Depth-Anything | TFLITE | float | Snapdragon® 8 Elite Gen 5 Mobile | 19.724 ms | 0 - 392 MB | NPU |
| Depth-Anything | TFLITE | float | Qualcomm® SA7255P | 142.52 ms | 1 - 396 MB | NPU |
| Depth-Anything | TFLITE | float | Qualcomm® QCS9075 | 62.267 ms | 1 - 57 MB | NPU |
| Depth-Anything | TFLITE | float | Qualcomm® QCS8750 | 24.801 ms | 1 - 397 MB | NPU |
License
- The license for the original implementation of Depth-Anything 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.
