Depth Anything V2

Monocular depth estimation model producing detailed depth maps from single images.

Open SourceSelf HostedOffline CapableGPU Required (4GB+ VRAM)
0.0 (0)

About

Depth Anything V2 refines the original monocular depth estimation model with markedly better fine-grained detail and robustness, while running faster with fewer parameters than diffusion-based depth methods. From a single image or video frame it predicts a relative depth map, and fine-tuned checkpoints deliver metric depth. Four encoder scales are offered: small at 24.8M parameters under Apache 2.0, plus base at 97.5M, large at 335.3M, and a planned 1.3B giant, with the larger variants licensed CC-BY-NC-4.0 for non-commercial use. Larger models also hold up better on video sequences, and variable input resolution can be used to extract extra detail. The model loads directly through Hugging Face Transformers and has been ported to Apple Core ML, TensorRT, and ONNX, with community integrations for ComfyUI and Android. Computer vision researchers and developers of robotics, 3D reconstruction, and image generation pipelines that need depth conditioning are the primary users.

Should you use Depth Anything V2?

Pick it when

Pick V2 when you need detailed relative depth for image generation conditioning, robotics or 3D pipelines, using the small model commercially or base and large for research. It loads straight from Transformers, with Core ML, TensorRT and ONNX ports.

Look elsewhere when

Skip the base and large models for commercial products, since they are CC-BY-NC; V1 large is Apache 2.0. If you need true metric scale on arbitrary photos without calibration, Depth Pro is built for that.

Alternatives to Depth Anything V2

  • Depth Anything V1

    Less fine detail, but every size including large is Apache 2.0, so it is the commercial choice when the small V2 model is not accurate enough.

  • Depth Pro

    Zero-shot metric depth with focal length estimation and sharp boundaries in one model, but Apple's sample code license is not OSI approved.

  • MiDaS

    MIT licensed and CPU friendly with selectable backbones, but older and less accurate than the Depth Anything line.

Reviews (0)

Leave a Review

No reviews yet. Be the first to review!