Skip to content

DepthAnything V2 Small - Model Files

Choose a tag to compare

@john-rocky john-rocky released this 01 Apr 09:39
· 305 commits to main since this release

Model Files

File Format Size Description
depth_anything_v2_nhwc.tflite TFLite FP32 NHWC 94 MB Recommended - GPU delegate compatible, 579ms on Pixel 10 Pro
depth_anything_v2.onnx ONNX FP32 94 MB ONNX Runtime CPU inference, 1437ms
depth_anything_v2_qualcomm.tflite TFLite FP32 NHWC 94 MB Qualcomm AI Hub pre-converted model, 571ms

Usage

Place model files in app/src/main/assets/ and build with Android Studio.

Conversion Pipeline (for NHWC TFLite)

  1. Patch PyTorch model (4D CLS concat, GELU tanh approximation)
  2. Export to ONNX (opset 18)
  3. Fix ConvTranspose kernel_shape, replace Erf→Tanh
  4. Simplify with onnxsim
  5. Convert with onnx2tf (-osd -coion)

See scripts/ for conversion code.