Repository navigation
DepthAnything V2 Small - Model Files
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)
- Patch PyTorch model (4D CLS concat, GELU tanh approximation)
- Export to ONNX (opset 18)
- Fix ConvTranspose kernel_shape, replace Erf→Tanh
- Simplify with onnxsim
- Convert with onnx2tf (
-osd -coion)
See scripts/ for conversion code.