Discover and explore top open-source AI tools and projects—updated daily.
mudlerC++ inference engine for monocular depth and camera pose
New!
Top 98.3% on SourcePulse
This project offers a highly optimized, from-scratch C++17/ggml port of ByteDance's Depth Anything 3 model, enabling dependency-free monocular metric depth and camera pose inference. It targets engineers and researchers seeking efficient, local AI inference without the overhead of Python, PyTorch, or CUDA, providing faster CPU performance and a self-contained, portable GGUF format.
How It Works
The core of depth-anything.cpp is a C++17 implementation leveraging the ggml library for efficient tensor operations. It utilizes a self-contained GGUF file format that embeds all model dimensions, hyperparameters, and preprocessing constants, eliminating the need for external configuration files or Python scripts during inference. This approach ensures a small, native library and CLI, with a strong emphasis on bit-exact parity to the original PyTorch model, verified component by component against reference tensors.
Quick Start & Requirements
git clone --recursive), navigate into the directory, build with CMake (cmake -B build -DDA_BUILD_CLI=ON && cmake --build build -j), and run the CLI executable (build/examples/cli/da3-cli).-DDA_GGML_CUDA=ON). No GPU is required for CPU inference.docs/GPU.md, docs/EXPORT.md, and docs/VERIFICATION.md respectively.Highlighted Details
include/da_capi.h) for straightforward integration into C, C++, Go, and Rust applications.Maintenance & Community
This project is developed by the LocalAI team. Specific community channels (like Discord/Slack) or detailed roadmaps are not explicitly mentioned in the provided README.
Licensing & Compatibility
depth-anything.cpp library is released under the permissive MIT License.Limitations & Caveats
Depth Anything V2 models, while supported, do not output confidence scores or camera pose information. The ViT-g (Giant) DA2 checkpoint is not included due to its gated/unreleased status in the original repository. While GPU backends are available, the project's primary performance advantages and detailed benchmarks focus on CPU execution.
3 weeks ago
Inactive
facebookresearch