Skip to content

How-ToGPU

How to Run Depth Anything 3 Locally to Make Depth Maps on Your PC

Depth Anything 3 turns ordinary photos and videos into depth maps, camera poses and 3D point clouds on your own graphics card. Using the official GitHub README and model cards, we explain which of the seven models to pick, how to install it, and how to make your first depth maps from Python, the command line or ComfyUI.

By , Systems & Technical Editor

6 min read

How to Run Depth Anything 3 Locally to Make Depth Maps on Your PC

Depth Anything 3 (DA3) from ByteDance's Seed team takes an ordinary photo, a set of photos or a video and works out how far away everything is. The result is a depth map you can feed into ControlNet in ComfyUI, use for 3D parallax effects or turn into a 3D point cloud. The code and model weights are free to download, so you can run it on your own graphics card. This guide follows the official GitHub README and Hugging Face model cards.

What Depth Anything 3 does

The DA3 team describes it as a model that predicts spatially consistent geometry from any visual input, with or without known camera positions. Depending on the model and the input, it can do:

  • Monocular depth estimation – a depth map from a single image

  • Multi-view depth estimation – consistent depth maps from several photos of the same scene

  • Camera pose estimation – where each camera was and its lens properties

  • Metric depth – real-world distances rather than relative "nearer/further" values (Metric and Nested models)

  • 3D Gaussians – for novel-view synthesis, with the optional Gaussian head

The developers say DA3 significantly outperforms Depth Anything V2 for single-image depth. Depth Anything V2 is still a lighter, simpler option if you only need basic single-image depth maps.

Choose a model first

DA3 isn't one model but a family, and the licences differ. These parameter counts and licences come from the official model table:

Model

Parameters

What it's for

Licence

DA3-Small

0.08B

Any-view depth and pose, fastest

Apache 2.0

DA3-Base

0.12B

Any-view depth and pose

Apache 2.0

DA3-Large-1.1

0.35B

Any-view depth and pose

CC BY-NC 4.0

DA3-Giant-1.1

1.15B

Any-view, plus 3D Gaussians

CC BY-NC 4.0

DA3Mono-Large

0.35B

Single-image relative depth, sky segmentation

Apache 2.0

DA3Metric-Large

0.35B

Single-image metric depth, sky segmentation

Apache 2.0

DA3Nested-Giant-Large-1.1

1.40B

Everything, at real-world metric scale

CC BY-NC 4.0

CC BY-NC 4.0 means non-commercial use only. If you want depth maps for paid work, stick to the Apache 2.0 models: Small, Base, Mono-Large or Metric-Large. For plain single-image depth maps, DA3Mono-Large is the one the developers built for the job; they say it predicts depth directly rather than disparity, which gives better geometric accuracy than Depth Anything 2.

The README also notes that models with a -1.1 suffix were retrained after a training bug was fixed. Use those rather than the original Large, Giant and Nested checkpoints, which are now deprecated.

What you need

The README doesn't give a minimum GPU or operating system. The install uses PyTorch 2 or newer and xformers, the examples load the model onto a CUDA device, and the optional Gradio web interface needs Python 3.10 or newer. In practice that means a recent Nvidia graphics card with current drivers.

The developers don't publish a VRAM figure for single images. They do say DA3-Streaming, added on 11 December 2025, handles very long videos with less than 12GB of GPU memory using sliding-window processing. As our suggestion rather than an official requirement, a 12GB card such as the ASUS RTX 3060 12GB Dual OC V2 is a sensible floor, and a 16GB card like the MSI RTX 5060 Ti 16GB Ventus 2X OC Plus leaves room for the Giant and Nested models. Our guide to how much VRAM you need explains the trade-offs.

The README doesn't cover Windows, and its commands are written for a Linux-style shell, so on Windows we'd use WSL2 with Ubuntu. Set that up with our guide to WSL2 for GPU-accelerated local AI. If you only want depth maps for ComfyUI, skip ahead to the ComfyUI section instead.

Step 1: Create an environment and install DA3

In a terminal (or your WSL2 Ubuntu shell), create a Python environment, then run the README's commands:

git clone https://github.com/ByteDance-Seed/Depth-Anything-3.git
cd Depth-Anything-3
pip install xformers "torch>=2" torchvision
pip install -e .

Optional extras:

  • pip install -e ".[app]" adds the Gradio web interface (Python 3.10 or newer)

  • pip install -e ".[all]" installs everything

  • The 3D Gaussian head needs gsplat, installed from GitHub with pip install --no-build-isolation and the commit given in the README

If your GPU is too old for xformers, the README points to a workaround in the project's issue #11.

Step 2: Make a depth map from Python

The weights download automatically from Hugging Face the first time you load a model, and unlike some models they aren't gated. Based on the README's example:

import torch
from depth_anything_3.api import DepthAnything3

model = DepthAnything3.from_pretrained("depth-anything/DA3MONO-LARGE")
model = model.to(device=torch.device("cuda"))
prediction = model.inference(["photo.jpg"])
print(prediction.depth.shape)

prediction.depth holds one depth map per image as a float32 array, and prediction.conf holds a confidence map. With the any-view models you also get prediction.extrinsics and prediction.intrinsics, the estimated camera poses and lens parameters. The Hugging Face card shows that you can pass export_dir and export_format to save the results as glb, npz, ply, mini_npz, gs_ply or gs_video files.

If the models fill your system drive, our guide to moving the Hugging Face cache to another drive shows how to point them elsewhere.

Step 3: Use the command line for batches and video

DA3 includes a da3 command. For repeated jobs, start a backend once so the model stays loaded on the GPU, then send work to it:

da3 backend --model-dir depth-anything/DA3NESTED-GIANT-LARGE --gallery-dir workspace/gallery
da3 auto path/to/images --export-format glb --export-dir output --use-backend

da3 auto works without the backend too: pass --model-dir instead of --use-backend, and the model loads for that run only. For video, da3 video yourclip.mp4 --fps 15 samples frames and exports the result. Feeding several frames or photos into the any-view models in one go is what gives you consistent depth across a sequence.

Getting real-world distances

DA3Metric-Large outputs a value you convert to metres yourself. The README's formula is metric_depth = focal * net_output / 300, where focal is the focal length in pixels (usually the average of fx and fy from the camera's intrinsic matrix). The DA3Nested-Giant-Large model already outputs metres, but it uses the non-commercial licence.

Using DA3 in ComfyUI instead

If you just want depth maps for ControlNet, the community ComfyUI-DepthAnythingV3 nodes (MIT licence) are the easier route, and DA3's own README links to them. Install them from ComfyUI Manager by searching for "Depth Anything V3", or clone the repository into ComfyUI/custom_nodes, run pip install -r requirements.txt --upgrade and then python install.py. The developer says the manual route is the most reliable, and notes that the one-click install uses an experimental package that downloads the pixi package manager.

For ControlNet, the node's documentation recommends the Mono or Metric models, which add sky segmentation, with normalisation left at the default V2-Style setting. Our guides to installing custom nodes with ComfyUI Manager and using ControlNet in ComfyUI cover the rest of the workflow.

Troubleshooting

  • xformers won't install or run: older GPUs may not support it; see issue #11 on the DA3 GitHub page for the developers' suggested fix.

  • Street scenes look wrong: make sure you're using a -1.1 checkpoint, as the developers say these are much better for street scenes.

  • Out of memory on long videos: use DA3-Streaming from the repository's da3_streaming folder, or switch to a smaller model. Our guide to fixing CUDA out of memory errors has more fixes.

  • Odd depth in the sky: use a Mono, Metric or Nested model, which include sky segmentation.

The bottom line

Depth Anything 3 is one of the most capable free depth models you can run at home: it turns photos and video into depth maps, camera poses and 3D point clouds on a recent Nvidia GPU. Install it from the official GitHub repository and use DA3Mono-Large for everyday single-image depth maps. Pick the -1.1 checkpoints, and choose Small, Base, Mono or Metric if you need a commercial-friendly Apache 2.0 licence. If you only want ControlNet depth maps, the ComfyUI nodes are the quickest way in.

In this article

Sources

  1. 01ByteDance Seed, Depth Anything 3 GitHub repository and README
  2. 02ByteDance Seed, DA3-LARGE model card on Hugging Face
  3. 03ByteDance Seed, DA3MONO-LARGE model card on Hugging Face
  4. 04Depth Anything 3 project page
  5. 05PozzettiAndrea, ComfyUI-DepthAnythingV3 GitHub repository

About the author

Marcus Thorne

Systems & Technical Editor

Marcus writes Forge PC's step-by-step build, troubleshooting and system optimisation guides. His background spans Windows kernel and power-state diagnostics, UEFI/BIOS configuration, NVMe storage arrays, ATX 3.1 power delivery and running local AI and LLM workloads on consumer graphics cards.

More from Marcus Thorne

Read next

Best Local AI Depth Estimation Tools in 2026

Best Picks

Best Local AI Depth Estimation Tools in 2026

You can make depth maps for ControlNet, 3D effects and reconstruction on your own PC for free. We pick the best local depth estimation tools for 2026, from Depth Anything 3 and its ComfyUI nodes to Depth Anything V2, Video Depth Anything and Apple's Depth Pro, with licences and hardware notes.

Hannah Vance4 min

Black Friday 2026 UK Graphics Card Deals: Few Real Lows as Popular GPUs Stay Expensive

News

Black Friday 2026 UK Graphics Card Deals: Few Real Lows as Popular GPUs Stay Expensive

Graphics cards have some of the fewest Black Friday cuts on VantaSpec's UK tracker, and only two gaming cards, both 8GB RTX 5060 Ti models, are at real 90-day lows. Several RTX 5070, RX 9070 and RTX 5080 'deals' are cuts from inflated prices, and popular cards are above their usual price. Here's what to check before Cyber Monday.

Eleanor Shaw4 min

Best Tools for Running Segment Anything Locally in 2026

Best Picks

Best Tools for Running Segment Anything Locally in 2026

You don't need to write your own code to use Meta's Segment Anything models on your PC. We pick the best free tools for running SAM 2, SAM 3 and SAM 3.1 locally, from Meta's own repository and Ultralytics to the X-AnyLabeling desktop app, ComfyUI nodes and Label Studio.

Hannah Vance5 min