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.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-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:

  • Model checkpoint: DepthAnything_V2_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-V2 ONNX float Snapdragon® X2 Elite 19.15 ms 210 - 210 MB NPU
Depth-Anything-V2 ONNX float Snapdragon® X Elite 49.057 ms 157 - 157 MB NPU
Depth-Anything-V2 ONNX float Snapdragon® 8 Gen 3 Mobile 36.2 ms 5 - 468 MB NPU
Depth-Anything-V2 ONNX float Snapdragon® 8 Gen 1 Mobile 85.794 ms 6 - 471 MB NPU
Depth-Anything-V2 ONNX float Qualcomm® QCS8550 (Proxy) 47.28 ms 0 - 58 MB NPU
Depth-Anything-V2 ONNX float Qualcomm® QCS8450 85.794 ms 6 - 471 MB NPU
Depth-Anything-V2 ONNX float Snapdragon® 8 Elite Mobile 25.026 ms 2 - 366 MB NPU
Depth-Anything-V2 ONNX float Snapdragon® 8 Elite Gen 5 Mobile 18.715 ms 3 - 366 MB NPU
Depth-Anything-V2 ONNX float Qualcomm® QCS9075 57.964 ms 5 - 50 MB NPU
Depth-Anything-V2 ONNX float Qualcomm® QCS8750 25.026 ms 2 - 366 MB NPU
Depth-Anything-V2 ONNX float Qualcomm® QCS7181 49.057 ms 157 - 157 MB NPU
Depth-Anything-V2 ONNX w8a16 Snapdragon® X2 Elite 12.324 ms 211 - 211 MB NPU
Depth-Anything-V2 ONNX w8a16 Snapdragon® X Elite 28.567 ms 180 - 180 MB NPU
Depth-Anything-V2 ONNX w8a16 Snapdragon® 8 Gen 3 Mobile 20.529 ms 3 - 643 MB NPU
Depth-Anything-V2 ONNX w8a16 Qualcomm® QCS8550 (Proxy) 28.423 ms 0 - 34 MB NPU
Depth-Anything-V2 ONNX w8a16 Qualcomm® QCS9075 31.794 ms 2 - 47 MB NPU
Depth-Anything-V2 ONNX w8a16 Snapdragon® 8 Elite Gen 5 Mobile 12.465 ms 3 - 438 MB NPU
Depth-Anything-V2 ONNX w8a16 Snapdragon® 8 Elite Mobile 15.503 ms 1 - 431 MB NPU
Depth-Anything-V2 ONNX w8a16 Qualcomm® QCM6690 230.365 ms 3 - 599 MB NPU
Depth-Anything-V2 ONNX w8a16 Snapdragon® 7 Gen 4 Mobile 35.654 ms 3 - 590 MB NPU
Depth-Anything-V2 ONNX w8a16 Qualcomm® QCS7790 35.654 ms 3 - 590 MB NPU
Depth-Anything-V2 ONNX w8a16 Qualcomm® QCS8750 15.503 ms 1 - 431 MB NPU
Depth-Anything-V2 ONNX w8a16 Qualcomm® QCS7181 28.567 ms 180 - 180 MB NPU
Depth-Anything-V2 QNN_DLC float Snapdragon® X2 Elite 20.316 ms 3 - 3 MB NPU
Depth-Anything-V2 QNN_DLC float Snapdragon® X Elite 51.381 ms 3 - 3 MB NPU
Depth-Anything-V2 QNN_DLC float Snapdragon® 8 Gen 3 Mobile 38.805 ms 1 - 510 MB NPU
Depth-Anything-V2 QNN_DLC float Snapdragon® 8 Gen 1 Mobile 92.624 ms 3 - 487 MB NPU
Depth-Anything-V2 QNN_DLC float Qualcomm® QCS8275 142.382 ms 2 - 389 MB NPU
Depth-Anything-V2 QNN_DLC float Qualcomm® QCS8550 (Proxy) 51.016 ms 3 - 6 MB NPU
Depth-Anything-V2 QNN_DLC float Qualcomm® QCS8450 92.624 ms 3 - 487 MB NPU
Depth-Anything-V2 QNN_DLC float Snapdragon® 8 Elite Mobile 24.955 ms 0 - 385 MB NPU
Depth-Anything-V2 QNN_DLC float Qualcomm® SA8295P 82.724 ms 0 - 363 MB NPU
Depth-Anything-V2 QNN_DLC float Snapdragon® 8 Elite Gen 5 Mobile 19.706 ms 3 - 385 MB NPU
Depth-Anything-V2 QNN_DLC float Qualcomm® SA7255P 142.382 ms 2 - 389 MB NPU
Depth-Anything-V2 QNN_DLC float Qualcomm® QCS9075 61.817 ms 5 - 11 MB NPU
Depth-Anything-V2 QNN_DLC float Qualcomm® QCS8750 24.955 ms 0 - 385 MB NPU
Depth-Anything-V2 QNN_DLC float Qualcomm® QCS7181 51.381 ms 3 - 3 MB NPU
Depth-Anything-V2 QNN_DLC w8a16 Snapdragon® X2 Elite 70.848 ms 2 - 2 MB NPU
Depth-Anything-V2 QNN_DLC w8a16 Snapdragon® X Elite 137.451 ms 2 - 2 MB NPU
Depth-Anything-V2 QNN_DLC w8a16 Snapdragon® 8 Gen 3 Mobile 114.004 ms 0 - 2293 MB NPU
Depth-Anything-V2 QNN_DLC w8a16 Qualcomm® QCS8275 260.521 ms 2 - 2003 MB NPU
Depth-Anything-V2 QNN_DLC w8a16 Qualcomm® QCS8550 (Proxy) 150.506 ms 2 - 5 MB NPU
Depth-Anything-V2 QNN_DLC w8a16 Qualcomm® QCS9075 142.145 ms 2 - 5 MB NPU
Depth-Anything-V2 QNN_DLC w8a16 Snapdragon® 8 Elite Gen 5 Mobile 83.575 ms 2 - 2018 MB NPU
Depth-Anything-V2 QNN_DLC w8a16 Snapdragon® 8 Elite Mobile 93.425 ms 2 - 2019 MB NPU
Depth-Anything-V2 QNN_DLC w8a16 Qualcomm® SA7255P 260.521 ms 2 - 2003 MB NPU
Depth-Anything-V2 QNN_DLC w8a16 Qualcomm® QCS8750 93.425 ms 2 - 2019 MB NPU
Depth-Anything-V2 QNN_DLC w8a16 Qualcomm® QCS7181 137.451 ms 2 - 2 MB NPU
Depth-Anything-V2 TFLITE float Snapdragon® 8 Gen 3 Mobile 38.949 ms 1 - 520 MB NPU
Depth-Anything-V2 TFLITE float Snapdragon® 8 Gen 1 Mobile 92.67 ms 1 - 489 MB NPU
Depth-Anything-V2 TFLITE float Qualcomm® QCS8275 142.361 ms 1 - 396 MB NPU
Depth-Anything-V2 TFLITE float Qualcomm® QCS8550 (Proxy) 51.04 ms 1 - 12 MB NPU
Depth-Anything-V2 TFLITE float Qualcomm® SA8775P 359.088 ms 0 - 28 MB GPU
Depth-Anything-V2 TFLITE float Qualcomm® SA8650P 359.088 ms 0 - 28 MB GPU
Depth-Anything-V2 TFLITE float Qualcomm® SA8255P 359.088 ms 0 - 28 MB GPU
Depth-Anything-V2 TFLITE float Qualcomm® QCS8450 92.67 ms 1 - 489 MB NPU
Depth-Anything-V2 TFLITE float Snapdragon® 8 Elite Mobile 24.737 ms 1 - 396 MB NPU
Depth-Anything-V2 TFLITE float Qualcomm® SA8295P 82.42 ms 1 - 370 MB NPU
Depth-Anything-V2 TFLITE float Snapdragon® 8 Elite Gen 5 Mobile 19.688 ms 1 - 391 MB NPU
Depth-Anything-V2 TFLITE float Qualcomm® SA7255P 142.361 ms 1 - 396 MB NPU
Depth-Anything-V2 TFLITE float Qualcomm® QCS9075 62.047 ms 1 - 57 MB NPU
Depth-Anything-V2 TFLITE float Qualcomm® QCS8750 24.737 ms 1 - 396 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