Views
No views yet
| Property | Value |
|---|---|
| Model Series | Any-view Model |
| Parameters | 1.15B |
| License | CC BY-NC 4.0 |
1git clone https://github.com/ByteDance-Seed/depth-anything-3
2cd depth-anything-3
3pip install -e .1import torch
2from depth_anything_3.api import DepthAnything3
3
4# Load model from Hugging Face Hub
5device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
6model = DepthAnything3.from_pretrained("depth-anything/da3-giant")
7model = model.to(device=device)
8
9# Run inference on images
10images = ["image1.jpg", "image2.jpg"] # List of image paths, PIL Images, or numpy arrays
11prediction = model.inference(
12 images,
13 export_dir="output",
14 export_format="glb" # Options: glb, npz, ply, mini_npz, gs_ply, gs_video
15)
16
17# Access results
18print(prediction.depth.shape) # Depth maps: [N, H, W] float32
19print(prediction.conf.shape) # Confidence maps: [N, H, W] float32
20print(prediction.extrinsics.shape) # Camera poses (w2c): [N, 3, 4] float32
21print(prediction.intrinsics.shape) # Camera intrinsics: [N, 3, 3] float321# Process images with auto mode
2da3 auto path/to/images \
3 --export-format glb \
4 --export-dir output \
5 --model-dir depth-anything/da3-giant
6
7# Use backend for faster repeated inference
8da3 backend --model-dir depth-anything/da3-giant
9da3 auto path/to/images --export-format glb --use-backend1@article{depthanything3,
2 title={Depth Anything 3: Recovering the visual space from any views},
3 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
4 journal={arXiv preprint arXiv:XXXX.XXXXX},
5 year={2025}
6}