DA3MONO LARGE

提供商depth-anything
分类depth-estimation
许可证apache-2.0
下载量304
星标0

简介

DA3MONO LARGE 是由 Depth Anything 团队推出的单目深度估计模型,旨在将 2D 图像精准地转化为深度图。与传统深度模型相比,它在处理复杂场景(如室内细节、自然景观)时具有更强的泛化能力,能够提供更高分辨率且边缘更锐利的深度信息。对于开发者而言,它非常适合集成到 3D 重建、虚拟背景替换、自动驾驶感知或 AI 绘画的 ControlNet 深度控制流中,上手门槛低,且兼容 Apache-2.0 开源协议,方便商业化部署。

核心亮点

  • 单图即可实现高精度深度感知,无需双目相机
  • 泛化能力强,能处理绝大多数未知自然场景
  • 输出深度图边缘锐利,细节还原度极高
  • 完美适配 3D 场景重建与 AI 图像控制流

使用方法

安装依赖
# 安装 Hugging Face transformers
pip install transformers torch
SDK 使用
# 使用 transformers 加载模型
from transformers import AutoModel, AutoTokenizer

model = AutoModel.from_pretrained("depth-anything/DA3MONO-LARGE")
tokenizer = AutoTokenizer.from_pretrained("depth-anything/DA3MONO-LARGE")

Hugging Face 下载

我们推荐使用命令行或者 Hugging Face Hub SDK 来进行模型的下载。

操作指引:在下载前,请先通过如下命令安装 huggingface_hub:

操作指引
pip install -U huggingface_hub

命令行下载

下载完整模型库

下载完整模型库
huggingface-cli download depth-anything/DA3MONO-LARGE

下载单个文件到指定本地文件夹(以下载 config.json 到当前路径下 ./dir 目录为例)

下载单个文件到指定本地文件夹(以下载 config.json 到当前路径下 ./dir 目录为例)
huggingface-cli download depth-anything/DA3MONO-LARGE config.json --local-dir ./dir

更多命令行下载选项,可参见官方文档

SDK 下载

SDK 下载
# 模型下载
from huggingface_hub import snapshot_download
model_dir = snapshot_download('depth-anything/DA3MONO-LARGE')

Git 下载

请确保 lfs 已经被正确安装

Git 下载
git lfs install
git clone https://huggingface.co/depth-anything/DA3MONO-LARGE

如果您希望跳过 lfs 大文件下载,可以使用如下命令

跳过 LFS
GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/depth-anything/DA3MONO-LARGE

模型文件托管在 Hugging Face Hub,使用 HF CLI / SDK / Git 直接下载,不经过本站。

PyTorch / Transformers 使用

安装 Transformers

安装 Transformers
pip install -U transformers torch

模型加载和推理

模型加载和推理
from transformers import AutoModelForCausalLM, AutoTokenizer

model = AutoModelForCausalLM.from_pretrained('depth-anything/DA3MONO-LARGE')
tokenizer = AutoTokenizer.from_pretrained('depth-anything/DA3MONO-LARGE')

模型下载

我们推荐使用命令行或者 ModelScope SDK 来进行模型的下载。

操作指引:在下载前,请先通过如下命令安装 ModelScope:

操作指引
pip install modelscope

命令行下载

下载完整模型库

下载完整模型库
modelscope download --model depth-anything/DA3MONO-LARGE

下载单个文件到指定本地文件夹(以下载 README.md 到当前路径下 dir 目录为例)

下载单个文件到指定本地文件夹(以下载 README.md 到当前路径下 dir 目录为例)
modelscope download --model depth-anything/DA3MONO-LARGE README.md --local_dir ./dir

更多更丰富的命令行下载选项,可参见具体文档

SDK 下载

SDK 下载
# 模型下载
from modelscope import snapshot_download
model_dir = snapshot_download('depth-anything/DA3MONO-LARGE')

Git 下载

请确保 lfs 已经被正确安装

Git 下载
git lfs install
git clone https://www.modelscope.cn/depth-anything/DA3MONO-LARGE.git

如果您希望跳过 lfs 大文件下载,可以使用如下命令

跳过 LFS
GIT_LFS_SKIP_SMUDGE=1 git clone https://www.modelscope.cn/depth-anything/DA3MONO-LARGE.git

ModelScope 模型页直接下载模型文件;无需将模型文件放在本站服务器。

Notebook 快速开发

下载并安装 ModelScope library

下载并安装 ModelScope library
pip install "modelscope[audio,cv,nlp,multi-modal,science]" -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html

模型加载和推理

模型加载和推理
from modelscope.pipelines import pipeline
from modelscope.utils.constant import Tasks

p = pipeline('text-generation', 'depth-anything/DA3MONO-LARGE')

完整文档

来源: HuggingFace

---
license: apache-2.0
tags:

  • depth-estimation

  • computer-vision

  • monocular-depth

  • multi-view-geometry

  • pose-estimation

library_name: depth-anything-3
pipeline_tag: depth-estimation
---

Depth Anything 3: DA3MONO-LARGE

<div align="center">

![Project Page](https://depth-anything-3.github.io)
![Paper](https://arxiv.org/abs/)
![Demo](https://huggingface.co/spaces/depth-anything/Depth-Anything-3) # noqa: E501
<!-- Benchmark badge removed as per request -->

</div>

Model Description

DA3 Monocular Large model for high-quality relative monocular depth estimation. Unlike disparity-based models (e.g., Depth Anything 2), it directly predicts depth, resulting in superior geometric accuracy.

| Property | Value |
|----------|-------|
| Model Series | Monocular Depth |
| Parameters | 0.35B |
| License | Apache 2.0 |

Capabilities

  • ✅ Relative Depth
  • ✅ Sky Segmentation

Quick Start

Installation

bash
git clone https://github.com/ByteDance-Seed/depth-anything-3
cd depth-anything-3
pip install -e .

Basic Example

python
import torch
from depth_anything_3.api import DepthAnything3

Load model from Hugging Face Hub

device = torch.device("cuda" if torch.cuda.is_available() else "cpu") model = DepthAnything3.from_pretrained("depth-anything/da3mono-large") model = model.to(device=device)

Run inference on images

images = ["image1.jpg", "image2.jpg"] # List of image paths, PIL Images, or numpy arrays prediction = model.inference( images, export_dir="output", export_format="glb" # Options: glb, npz, ply, mini_npz, gs_ply, gs_video )

Access results

print(prediction.depth.shape) # Depth maps: [N, H, W] float32 print(prediction.conf.shape) # Confidence maps: [N, H, W] float32 print(prediction.extrinsics.shape) # Camera poses (w2c): [N, 3, 4] float32 print(prediction.intrinsics.shape) # Camera intrinsics: [N, 3, 3] float32

Command Line Interface

bash
# Process images with auto mode
da3 auto path/to/images \
    --export-format glb \
    --export-dir output \
    --model-dir depth-anything/da3mono-large

Use backend for faster repeated inference

da3 backend --model-dir depth-anything/da3mono-large da3 auto path/to/images --export-format glb --use-backend

Model Details

  • Developed by: ByteDance Seed Team
  • Model Type: Vision Transformer for Visual Geometry
  • Architecture: Plain transformer with unified depth-ray representation
  • Training Data: Public academic datasets only

Key Insights

💎 A single plain transformer (e.g., vanilla DINO encoder) is sufficient as a backbone without architectural specialization. # noqa: E501

✨ A singular depth-ray representation obviates the need for complex multi-task learning.

Performance

🏆 Depth Anything 3 significantly outperforms:

  • Depth Anything 2 for monocular depth estimation

  • VGGT for multi-view depth estimation and pose estimation

For detailed benchmarks, please refer to our paper. # noqa: E501

Limitations

  • The model is trained on academic datasets and may have limitations on certain domain-specific images # noqa: E501
  • Performance may vary depending on image quality, lighting conditions, and scene complexity

Citation

If you find Depth Anything 3 useful in your research or projects, please cite:

bibtex
@article{depthanything3,
  title={Depth Anything 3: Recovering the visual space from any views},
  author={Haotong Lin and Sili Chen and Jun Hao Liew and Donny Y. Chen and Zhenyu Li and Guang Shi and Jiashi Feng and Bingyi Kang},  # noqa: E501
  journal={arXiv preprint arXiv:XXXX.XXXXX},
  year={2025}
}

Links

Authors

Haotong Lin · Sili Chen · Junhao Liew · Donny Y. Chen · Zhenyu Li · Guang Shi · Jiashi Feng · Bingyi Kang # noqa: E501