Depth Estimation
PyTorch
android

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.105 ms 5 - 5 MB NPU
Depth-Anything-V2 ONNX float Snapdragon® X Elite 49.17 ms 48 - 48 MB NPU
Depth-Anything-V2 ONNX float Snapdragon® 8 Gen 3 Mobile 36.362 ms 0 - 474 MB NPU
Depth-Anything-V2 ONNX float Snapdragon® 8 Gen 1 Mobile 86.366 ms 1 - 476 MB NPU
Depth-Anything-V2 ONNX float Qualcomm® Dragonwing™ IQ-8275 56.811 ms 3 - 9 MB NPU
Depth-Anything-V2 ONNX float Qualcomm® Dragonwing™ QCS8550 (Proxy) 47.375 ms 0 - 55 MB NPU
Depth-Anything-V2 ONNX float Qualcomm® QCS8450 86.366 ms 1 - 476 MB NPU
Depth-Anything-V2 ONNX float Qualcomm® Dragonwing™ IQ-9075 55.6 ms 3 - 9 MB NPU
Depth-Anything-V2 ONNX float Qualcomm® Dragonwing™ IQ-X7181 49.17 ms 48 - 48 MB NPU
Depth-Anything-V2 ONNX float Qualcomm® Dragonwing™ Q-8750 25.444 ms 2 - 365 MB NPU
Depth-Anything-V2 ONNX float Snapdragon® 8 Elite Mobile 25.444 ms 2 - 365 MB NPU
Depth-Anything-V2 ONNX float Snapdragon® 8 Elite Gen 5 Mobile 18.775 ms 2 - 371 MB NPU
Depth-Anything-V2 ONNX w8a16 Snapdragon® X2 Elite 12.341 ms 4 - 4 MB NPU
Depth-Anything-V2 ONNX w8a16 Snapdragon® X Elite 28.614 ms 28 - 28 MB NPU
Depth-Anything-V2 ONNX w8a16 Snapdragon® 8 Gen 3 Mobile 20.324 ms 3 - 652 MB NPU
Depth-Anything-V2 ONNX w8a16 Snapdragon® 8 Gen 1 Mobile 44.913 ms 3 - 527 MB NPU
Depth-Anything-V2 ONNX w8a16 Qualcomm® Dragonwing™ QCS6490 107.141 ms 2 - 5 MB NPU
Depth-Anything-V2 ONNX w8a16 Qualcomm® Dragonwing™ IQ-8275 26.093 ms 2 - 6 MB NPU
Depth-Anything-V2 ONNX w8a16 Qualcomm® Dragonwing™ QCS8550 (Proxy) 28.391 ms 0 - 565 MB NPU
Depth-Anything-V2 ONNX w8a16 Qualcomm® QCS8450 44.913 ms 3 - 527 MB NPU
Depth-Anything-V2 ONNX w8a16 Qualcomm® Dragonwing™ IQ-9075 28.534 ms 2 - 5 MB NPU
Depth-Anything-V2 ONNX w8a16 Qualcomm® Dragonwing™ IQ-X7181 28.614 ms 28 - 28 MB NPU
Depth-Anything-V2 ONNX w8a16 Qualcomm® Dragonwing™ Q-6690 245.755 ms 3 - 604 MB NPU
Depth-Anything-V2 ONNX w8a16 Qualcomm® Dragonwing™ Q-7790 34.933 ms 3 - 594 MB NPU
Depth-Anything-V2 ONNX w8a16 Qualcomm® Dragonwing™ Q-8750 15.525 ms 3 - 433 MB NPU
Depth-Anything-V2 ONNX w8a16 Snapdragon® 8 Elite Mobile 15.525 ms 3 - 433 MB NPU
Depth-Anything-V2 ONNX w8a16 Snapdragon® 8 Elite Gen 5 Mobile 12.525 ms 1 - 440 MB NPU
Depth-Anything-V2 ONNX w8a16 Snapdragon® 7 Gen 4 Mobile 34.933 ms 3 - 594 MB NPU
Depth-Anything-V2 QNN_DLC float Snapdragon® X2 Elite 20.307 ms 3 - 3 MB NPU
Depth-Anything-V2 QNN_DLC float Snapdragon® X Elite 51.438 ms 3 - 3 MB NPU
Depth-Anything-V2 QNN_DLC float Snapdragon® 8 Gen 3 Mobile 38.704 ms 3 - 514 MB NPU
Depth-Anything-V2 QNN_DLC float Snapdragon® 8 Gen 1 Mobile 93.193 ms 3 - 488 MB NPU
Depth-Anything-V2 QNN_DLC float Qualcomm® Dragonwing™ IQ-8275 57.433 ms 3 - 10 MB NPU
Depth-Anything-V2 QNN_DLC float Qualcomm® Dragonwing™ IQ-8275 142.217 ms 1 - 387 MB NPU
Depth-Anything-V2 QNN_DLC float Qualcomm® Dragonwing™ QCS8550 (Proxy) 50.868 ms 3 - 260 MB NPU
Depth-Anything-V2 QNN_DLC float Qualcomm® SA8775P 56.643 ms 1 - 370 MB NPU
Depth-Anything-V2 QNN_DLC float Qualcomm® SA8650P 56.643 ms 1 - 370 MB NPU
Depth-Anything-V2 QNN_DLC float Qualcomm® SA8255P 56.643 ms 1 - 370 MB NPU
Depth-Anything-V2 QNN_DLC float Qualcomm® QCS8450 93.193 ms 3 - 488 MB NPU
Depth-Anything-V2 QNN_DLC float Qualcomm® Dragonwing™ IQ-9075 57.002 ms 3 - 9 MB NPU
Depth-Anything-V2 QNN_DLC float Qualcomm® Dragonwing™ IQ-X7181 51.438 ms 3 - 3 MB NPU
Depth-Anything-V2 QNN_DLC float Qualcomm® Dragonwing™ Q-8750 24.744 ms 0 - 385 MB NPU
Depth-Anything-V2 QNN_DLC float Qualcomm® SA7255P 142.217 ms 1 - 387 MB NPU
Depth-Anything-V2 QNN_DLC float Qualcomm® SA8295P 82.733 ms 0 - 364 MB NPU
Depth-Anything-V2 QNN_DLC float Snapdragon® 8 Elite Mobile 24.744 ms 0 - 385 MB NPU
Depth-Anything-V2 QNN_DLC float Snapdragon® 8 Elite Gen 5 Mobile 19.759 ms 3 - 384 MB NPU
Depth-Anything-V2 QNN_DLC w8a16 Snapdragon® X2 Elite 87.956 ms 2 - 2 MB NPU
Depth-Anything-V2 QNN_DLC w8a16 Snapdragon® X Elite 137.494 ms 2 - 2 MB NPU
Depth-Anything-V2 QNN_DLC w8a16 Snapdragon® 8 Gen 3 Mobile 114.566 ms 2 - 2302 MB NPU
Depth-Anything-V2 QNN_DLC w8a16 Qualcomm® Dragonwing™ IQ-8275 136.518 ms 2 - 6 MB NPU
Depth-Anything-V2 QNN_DLC w8a16 Qualcomm® Dragonwing™ IQ-8275 258.971 ms 2 - 2002 MB NPU
Depth-Anything-V2 QNN_DLC w8a16 Qualcomm® Dragonwing™ QCS8550 (Proxy) 141.681 ms 2 - 4 MB NPU
Depth-Anything-V2 QNN_DLC w8a16 Qualcomm® SA8775P 141.018 ms 2 - 2002 MB NPU
Depth-Anything-V2 QNN_DLC w8a16 Qualcomm® SA8650P 141.018 ms 2 - 2002 MB NPU
Depth-Anything-V2 QNN_DLC w8a16 Qualcomm® SA8255P 141.018 ms 2 - 2002 MB NPU
Depth-Anything-V2 QNN_DLC w8a16 Qualcomm® Dragonwing™ IQ-9075 136.436 ms 2 - 5 MB NPU
Depth-Anything-V2 QNN_DLC w8a16 Qualcomm® Dragonwing™ IQ-X7181 137.494 ms 2 - 2 MB NPU
Depth-Anything-V2 QNN_DLC w8a16 Qualcomm® Dragonwing™ Q-8750 93.608 ms 2 - 2018 MB NPU
Depth-Anything-V2 QNN_DLC w8a16 Qualcomm® SA7255P 258.971 ms 2 - 2002 MB NPU
Depth-Anything-V2 QNN_DLC w8a16 Snapdragon® 8 Elite Mobile 93.608 ms 2 - 2018 MB NPU
Depth-Anything-V2 QNN_DLC w8a16 Snapdragon® 8 Elite Gen 5 Mobile 83.512 ms 2 - 2018 MB NPU
Depth-Anything-V2 TFLITE float Snapdragon® 8 Gen 3 Mobile 38.956 ms 2 - 517 MB NPU
Depth-Anything-V2 TFLITE float Snapdragon® 8 Gen 1 Mobile 93.603 ms 2 - 491 MB NPU
Depth-Anything-V2 TFLITE float Qualcomm® Dragonwing™ IQ-8275 57.568 ms 1 - 58 MB NPU
Depth-Anything-V2 TFLITE float Qualcomm® Dragonwing™ IQ-8275 142.423 ms 1 - 396 MB NPU
Depth-Anything-V2 TFLITE float Qualcomm® Dragonwing™ QCS8550 (Proxy) 51.647 ms 1 - 11 MB NPU
Depth-Anything-V2 TFLITE float Qualcomm® SA8775P 56.643 ms 1 - 379 MB NPU
Depth-Anything-V2 TFLITE float Qualcomm® SA8650P 56.643 ms 1 - 379 MB NPU
Depth-Anything-V2 TFLITE float Qualcomm® SA8255P 56.643 ms 1 - 379 MB NPU
Depth-Anything-V2 TFLITE float Qualcomm® QCS8450 93.603 ms 2 - 491 MB NPU
Depth-Anything-V2 TFLITE float Qualcomm® Dragonwing™ IQ-9075 56.585 ms 1 - 58 MB NPU
Depth-Anything-V2 TFLITE float Qualcomm® Dragonwing™ Q-8750 24.87 ms 1 - 398 MB NPU
Depth-Anything-V2 TFLITE float Qualcomm® SA7255P 142.423 ms 1 - 396 MB NPU
Depth-Anything-V2 TFLITE float Qualcomm® SA8295P 82.508 ms 1 - 370 MB NPU
Depth-Anything-V2 TFLITE float Snapdragon® 8 Elite Mobile 24.87 ms 1 - 398 MB NPU
Depth-Anything-V2 TFLITE float Snapdragon® 8 Elite Gen 5 Mobile 19.719 ms 1 - 391 MB NPU

License

  • The license for the original implementation of Depth-Anything-V2 can be found here.

References

Community

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Paper for qualcomm/Depth-Anything-V2