Views
No views yet

| Variant | Parameters | Size (MB) | Weight precision | Act. precision | abs-rel error | abs-rel reference |
|---|---|---|---|---|---|---|
| small-original (PyTorch) | 24.8M | 99.2 | Float32 | Float32 | ||
| DepthAnythingV2SmallF32 | 24.8M | 99.2 | Float32 | Float32 | 0.0072 | small-original |
| DepthAnythingV2SmallF16 | 24.8M | 49.8 | Float16 | Float16 | 0.0089 | small-original |
float32 precision.| Device | OS | Inference time (ms) | Dominant compute unit |
|---|---|---|---|
| iPhone 12 Pro Max | 18.0 | 31.10 | Neural Engine |
| iPhone 15 Pro Max | 17.4 | 33.90 | Neural Engine |
| MacBook Pro (M1 Max) | 15.0 | 32.80 | Neural Engine |
| MacBook Pro (M3 Max) | 15.0 | 24.58 | Neural Engine |
huggingface-clibrew install huggingface-cli.mlpackage folders to the models directory:1huggingface-cli download \
2 --local-dir models --local-dir-use-symlinks False \
3 apple/coreml-depth-anything-v2-small \
4 --include "DepthAnythingV2SmallF16.mlpackage/*"--include argument.huggingface/coreml-examples repository contains sample Swift code for DepthAnythingV2SmallF16.mlpackage and other models. See the instructions there to build the demo app, which shows how to use the model in your own Swift apps.