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.42, ONNX Runtime 1.24.3 | Download |
| ONNX | w8a16 | Universal | QAIRT 2.42, ONNX Runtime 1.24.3 | 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® 8 Elite Gen 5 Mobile | 29.907 ms | 5 - 534 MB | NPU |
| Depth-Anything | ONNX | float | Snapdragon® X2 Elite | 30.238 ms | 49 - 49 MB | NPU |
| Depth-Anything | ONNX | float | Snapdragon® X Elite | 73.751 ms | 48 - 48 MB | NPU |
| Depth-Anything | ONNX | float | Snapdragon® 8 Gen 3 Mobile | 48.981 ms | 1 - 684 MB | NPU |
| Depth-Anything | ONNX | float | Qualcomm® QCS8550 (Proxy) | 72.362 ms | 0 - 55 MB | NPU |
| Depth-Anything | ONNX | float | Qualcomm® QCS9075 | 90.779 ms | 3 - 9 MB | NPU |
| Depth-Anything | ONNX | float | Snapdragon® 8 Elite For Galaxy Mobile | 36.573 ms | 2 - 535 MB | NPU |
| Depth-Anything | ONNX | w8a16 | Snapdragon® 8 Elite Gen 5 Mobile | 28.695 ms | 3 - 545 MB | NPU |
| Depth-Anything | ONNX | w8a16 | Snapdragon® X2 Elite | 29.186 ms | 30 - 30 MB | NPU |
| Depth-Anything | ONNX | w8a16 | Snapdragon® X Elite | 58.694 ms | 29 - 29 MB | NPU |
| Depth-Anything | ONNX | w8a16 | Snapdragon® 8 Gen 3 Mobile | 39.375 ms | 3 - 992 MB | NPU |
| Depth-Anything | ONNX | w8a16 | Qualcomm® QCS6490 | 3244.697 ms | 154 - 159 MB | CPU |
| Depth-Anything | ONNX | w8a16 | Qualcomm® QCS8550 (Proxy) | 56.319 ms | 0 - 35 MB | NPU |
| Depth-Anything | ONNX | w8a16 | Qualcomm® QCS9075 | 83.837 ms | 2 - 5 MB | NPU |
| Depth-Anything | ONNX | w8a16 | Qualcomm® QCM6690 | 1708.433 ms | 158 - 173 MB | CPU |
| Depth-Anything | ONNX | w8a16 | Snapdragon® 8 Elite For Galaxy Mobile | 35.574 ms | 3 - 619 MB | NPU |
| Depth-Anything | ONNX | w8a16 | Snapdragon® 7 Gen 4 Mobile | 1628.502 ms | 156 - 172 MB | CPU |
| Depth-Anything | QNN_DLC | float | Snapdragon® 8 Elite Gen 5 Mobile | 33.83 ms | 2 - 456 MB | NPU |
| Depth-Anything | QNN_DLC | float | Snapdragon® X2 Elite | 36.24 ms | 3 - 3 MB | NPU |
| Depth-Anything | QNN_DLC | float | Snapdragon® X Elite | 92.058 ms | 3 - 3 MB | NPU |
| Depth-Anything | QNN_DLC | float | Snapdragon® 8 Gen 3 Mobile | 66.369 ms | 0 - 620 MB | NPU |
| Depth-Anything | QNN_DLC | float | Qualcomm® QCS8275 (Proxy) | 205.789 ms | 1 - 474 MB | NPU |
| Depth-Anything | QNN_DLC | float | Qualcomm® QCS8550 (Proxy) | 92.607 ms | 3 - 66 MB | NPU |
| Depth-Anything | QNN_DLC | float | Qualcomm® SA8775P | 97.875 ms | 1 - 477 MB | NPU |
| Depth-Anything | QNN_DLC | float | Qualcomm® QCS9075 | 103.259 ms | 3 - 9 MB | NPU |
| Depth-Anything | QNN_DLC | float | Qualcomm® QCS8450 (Proxy) | 158.621 ms | 2 - 538 MB | NPU |
| Depth-Anything | QNN_DLC | float | Qualcomm® SA7255P | 205.789 ms | 1 - 474 MB | NPU |
| Depth-Anything | QNN_DLC | float | Qualcomm® SA8295P | 125.174 ms | 1 - 432 MB | NPU |
| Depth-Anything | QNN_DLC | float | Snapdragon® 8 Elite For Galaxy Mobile | 50.765 ms | 3 - 471 MB | NPU |
| Depth-Anything | QNN_DLC | w8a16 | Snapdragon® 8 Elite Gen 5 Mobile | 89.803 ms | 4 - 1903 MB | NPU |
| Depth-Anything | QNN_DLC | w8a16 | Snapdragon® X2 Elite | 77.925 ms | 2 - 2 MB | NPU |
| Depth-Anything | QNN_DLC | w8a16 | Snapdragon® X Elite | 152.132 ms | 2 - 2 MB | NPU |
| Depth-Anything | QNN_DLC | w8a16 | Snapdragon® 8 Gen 3 Mobile | 123.444 ms | 2 - 2186 MB | NPU |
| Depth-Anything | QNN_DLC | w8a16 | Qualcomm® QCS8275 (Proxy) | 285.651 ms | 2 - 1931 MB | NPU |
| Depth-Anything | QNN_DLC | w8a16 | Qualcomm® QCS8550 (Proxy) | 156.394 ms | 2 - 8 MB | NPU |
| Depth-Anything | QNN_DLC | w8a16 | Qualcomm® SA8775P | 155.738 ms | 2 - 1783 MB | NPU |
| Depth-Anything | QNN_DLC | w8a16 | Qualcomm® QCS9075 | 158.894 ms | 2 - 5 MB | NPU |
| Depth-Anything | QNN_DLC | w8a16 | Qualcomm® SA7255P | 285.651 ms | 2 - 1931 MB | NPU |
| Depth-Anything | QNN_DLC | w8a16 | Snapdragon® 8 Elite For Galaxy Mobile | 101.092 ms | 2 - 1915 MB | NPU |
| Depth-Anything | TFLITE | float | Snapdragon® 8 Elite Gen 5 Mobile | 30.415 ms | 1 - 467 MB | NPU |
| Depth-Anything | TFLITE | float | Snapdragon® 8 Gen 3 Mobile | 56.457 ms | 0 - 605 MB | NPU |
| Depth-Anything | TFLITE | float | Qualcomm® QCS8275 (Proxy) | 184.619 ms | 0 - 466 MB | NPU |
| Depth-Anything | TFLITE | float | Qualcomm® QCS8550 (Proxy) | 78.73 ms | 1 - 11 MB | NPU |
| Depth-Anything | TFLITE | float | Qualcomm® SA8775P | 83.715 ms | 1 - 460 MB | NPU |
| Depth-Anything | TFLITE | float | Qualcomm® QCS9075 | 96.128 ms | 0 - 58 MB | NPU |
| Depth-Anything | TFLITE | float | Qualcomm® QCS8450 (Proxy) | 153.955 ms | 1 - 594 MB | NPU |
| Depth-Anything | TFLITE | float | Qualcomm® SA7255P | 184.619 ms | 0 - 466 MB | NPU |
| Depth-Anything | TFLITE | float | Qualcomm® SA8295P | 109.28 ms | 1 - 452 MB | NPU |
| Depth-Anything | TFLITE | float | Snapdragon® 8 Elite For Galaxy Mobile | 41.911 ms | 0 - 433 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.
