# localai-org/depth-anything.cpp

A from-scratch C++17/ggml port of Depth Anything 2 and 3 (ByteDance)

Repository: https://github.com/localai-org/depth-anything.cpp
Canonical: https://ross.abutalabs.com/products/depth-anythingcpp
Language: C++
License: MIT
License Family: permissive
Last push: 2026-08-31T09:40:17+00:00

## Health v2 (maintenance only)
Score: 58/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 100, release rhythm 35, longevity 5
- inputs: {"age_days": 80, "days_push": 2, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, young
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1090, forks 110 (observed 2026-09-01T02:14:03.818836+00:00)

## What it is
A from-scratch C++17/ggml port of ByteDance's Depth Anything 2 and 3 models for dependency-free monocular metric depth and camera pose inference. It ships as a self-contained GGUF-based native library and CLI with a flat C API, running faster than PyTorch on CPU with optional CUDA/Metal/Vulkan backends.

## Use cases
- estimate metric depth maps from a single image without Python or PyTorch
- recover camera pose and intrinsics from photos for 3D reconstruction
- export depth and point clouds to glb, COLMAP, or PLY formats
- embed depth estimation into C, C++, Go, or Rust applications via a C API
- run quantized depth models on CPU with no GPU or CUDA toolkit
- generate 3D point clouds and sky masks from images

## When to choose
- you need fast, dependency-free depth estimation on CPU or edge devices
- you want to embed monocular depth inference in native applications without Python
- you need bit-exact parity with Depth Anything 3 outputs
- you want quantized models (down to ~99 MB) for lightweight deployment

## When to avoid
- you need training or fine-tuning of depth models, not just inference
- you prefer a Python/PyTorch ecosystem with easy experimentation
- you need multi-view stereo reconstruction beyond what DA3 provides

## Facets
- artifact type: library
- maturity: active
- function: machine-learning, computer-vision, image-processing, llm-inference
- domain: computer-vision, machine-learning, deep-learning, graphics
- platform: cpp, windows, cli
- tags: depth-estimation, ggml, gguf, monocular-depth, camera-pose, 3d-reconstruction, point-cloud, depth-anything, cpu-inference, c-api, linux, macos, gpu

## Member repositories
- localai-org/depth-anything.cpp (main) score 58

## Provenance
- Observed fields: from GitHub, fetched 2026-09-01T02:14:03.818836+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:49:31.969257+00:00, confidence not recorded.
  - readme: https://github.com/localai-org/depth-anything.cpp (fetched 2026-09-01T02:14:03.818836+00:00, sha 6f58c667b166)
- Data as of 2026-08-30T08:39:29.467469+00:00.
