Depth Anything 3
ByteDance's Depth Anything 3: depth from one image, with relative, metric and multi-view versions. The licence differs by variant, see the table.
Commercial use: da3mono-large, da3metric-large: yes; da3-large-1.1, da3-giant-1.1, da3nested-giant-large-1.1: no (weights: CC-BY-NC-4.0).
| variant | input | backend | time (ms) | peak memory (MiB, allocated / reserved) |
|---|---|---|---|---|
da3mono-large | Middlebury 2014 half (994x1482) | original (fp32) original portable kernels portable + torch.compile TensorRT fp16 | 127 85.2 23.9 14.6 21.2 14.4 | 2419 / 2450 2997 / 3052 818 / 1328 814 / 868 792 / 828 754 (engine) |
da3metric-large | Middlebury 2014 half (994x1482) | original (fp32) original portable kernels | 128 85.1 24.1 14.7 | 2418 / 2450 2996 / 3050 815 / 1328 811 / 868 |
da3-large-1.1 | Middlebury 2014 half (994x1482) | original (fp32) original portable kernels | 208 166 37.4 17.1 | 2797 / 2872 3374 / 3472 992 / 1350 985 / 1090 |
da3-giant-1.1 | Middlebury 2014 half (994x1482) | original (fp32) original portable kernels | 410 227 81.8 44.2 | 6428 / 6496 8590 / 8718 2638 / 4608 2628 / 2710 |
da3nested-giant-large-1.1 | Middlebury 2014 half (994x1482) | original (fp32) original portable kernels | 533 308 108 58.2 | 7702 / 7760 10332 / 10402 3275 / 5914 3271 / 3378 |
Details
- Original code: https://github.com/ByteDance-Seed/Depth-Anything-3 at
3d835ec - Code licence: Apache-2.0 (permissive); files:
LICENSE - Weights licence: Apache-2.0
da3-large-1.1: CC-BY-NC-4.0da3-giant-1.1: CC-BY-NC-4.0da3nested-giant-large-1.1: CC-BY-NC-4.0
- Licence evidence: https://github.com/ByteDance-Seed/Depth-Anything-3/blob/main/README.md (Model Cards table) and the Hugging Face model cards (DA3-LARGE-1.1's card says Apache 2.0, the repository table CC BY-NC 4.0; the table is recorded)
- Training data: Public academic datasets only (model cards); teacher-student training on synthetic and real multi-view data per the paper
- Licence note: The Mono and Metric weights are Apache-2.0 but their training data terms are unchecked (a note only); the other variants' weights are CC-BY-NC-4.0 (
no). - Options:
long_side= 504 (>= 14; alsoprocess_res) - Kernel libraries:
fastbb,dpt_fused - Variants:
da3mono-large,da3metric-large,da3-large-1.1,da3-giant-1.1,da3nested-giant-large-1.1 - Outputs: depth, confidence, intrinsics, mask, sky (in
extras); kind:metric - Input size: any H x W >= 8, resized or padded inside the model (ViT patch 14)
- Tested up to (portable, fp16, RTX 5060 Ti 16 GB):
da3mono-large3000x4000 (1.9 GiB peak allocated, 2.1 reserved);da3metric-large3000x4000 (1.9 GiB peak allocated, 2.1 reserved);da3-large-1.13000x4000 (1.9 GiB peak allocated, 2.2 reserved);da3-giant-1.13000x4000 (5.1 GiB peak allocated, 5.4 reserved);da3nested-giant-large-1.13000x4000 (6.3 GiB peak allocated, 6.7 reserved) da3mono-large994x1482, first call: portable + torch.compile 25 s (cold Inductor cache), TensorRT fp16 52 s (ONNX + engine).da3mono-largeoriginal (fp32) 994x1482: float32 (the authors' autocast off)da3mono-largeoriginal 994x1482: original default (api.py): torch.autocast(bfloat16)da3metric-largeoriginal (fp32) 994x1482: float32 (the authors' autocast off)da3metric-largeoriginal 994x1482: original default (api.py): torch.autocast(bfloat16)da3-large-1.1original (fp32) 994x1482: float32 (the authors' autocast off)da3-large-1.1original 994x1482: original default (api.py): torch.autocast(bfloat16)da3mono-largeload / first call: original 2.96 s / 0.282 s, portable 4.25 s / 0.092 s, kernels 1.44† s / 0.018 sda3metric-largeload / first call: original 2.7 s / 0.283 s, portable 0.35 s / 0.049 s, kernels 0.3† s / 0.016 sda3-large-1.1load / first call: original 3.46 s / 0.45 s, portable 3.65 s / 0.25 s, kernels 0.31† s / 0.027 sda3-giant-1.1load / first call: original 12.39 s / 0.684 s, portable 6.29 s / 0.163 s, kernels 0.9† s / 0.061 sda3nested-giant-large-1.1load / first call: original 28.67 s / 1.626 s, portable 13.25 s / 0.548 s, kernels 2.73† s / 0.07 s- † measured in the speed sweep after the portable load (or an earlier size) in the same process: file cache and kernels are warm, so the time is lower than a fresh start.
- Protocol, median of 5 after 3 warm-up, uint8 CUDA input (synthetic for bench_inputs sizes), card defaults; gc before each load; peak = max over the first call and the timed calls
Measured
AbsRel / delta1 after a least-squares scale + shift fit (in disparity space for inverse-depth models), mean over images. Original = the original code named under Details, same checkpoint and protocol.
| variant | dataset | original fp32 | original fp16 | portable | kernels | note |
|---|---|---|---|---|---|---|
da3mono-large | NYUv2 test, AbsRel / delta1 | 0.0402 / 0.9821 | 0.0402 / 0.9820 | 0.0402 / 0.9821 | 0.0402 / 0.9821 | |
da3mono-large | iBims-1, AbsRel / delta1 | 0.0311 / 0.9872 | 0.0311 / 0.9872 | 0.0311 / 0.9872 | 0.0311 / 0.9873 | |
da3mono-large | ETH3D two-view train left, AbsRel / delta1 | 0.0631 / 0.9567 | 0.0629 / 0.9583 | 0.0630 / 0.9568 | 0.0631 / 0.9567 | possibly in the training data |
da3mono-large | Middlebury 2014 trainingH left, AbsRel / delta1 | 0.0254 / 0.9954 | 0.0253 / 0.9954 | 0.0254 / 0.9954 | 0.0254 / 0.9954 | possibly in the training data |
da3metric-large | NYUv2 test, AbsRel / delta1 | 0.0398 / 0.9820 | 0.0398 / 0.9820 | 0.0398 / 0.9820 | 0.0398 / 0.9820 | |
da3metric-large | iBims-1, AbsRel / delta1 | 0.0328 / 0.9864 | 0.0328 / 0.9863 | 0.0328 / 0.9864 | 0.0328 / 0.9864 | |
da3metric-large | ETH3D two-view train left, AbsRel / delta1 | 0.0716 / 0.9343 | 0.0716 / 0.9343 | 0.0716 / 0.9342 | 0.0717 / 0.9342 | possibly in the training data |
da3metric-large | Middlebury 2014 trainingH left, AbsRel / delta1 | 0.0274 / 0.9949 | 0.0275 / 0.9949 | 0.0274 / 0.9949 | 0.0274 / 0.9949 | possibly in the training data |
da3-large-1.1 | NYUv2 test, AbsRel / delta1 | 0.0468 / 0.9752 | 0.0468 / 0.9752 | 0.0468 / 0.9752 | 0.0468 / 0.9752 | |
da3-large-1.1 | iBims-1, AbsRel / delta1 | 0.0413 / 0.9763 | 0.0413 / 0.9764 | 0.0413 / 0.9763 | 0.0413 / 0.9764 | |
da3-large-1.1 | ETH3D two-view train left, AbsRel / delta1 | 0.0867 / 0.9177 | 0.0869 / 0.9176 | 0.0868 / 0.9177 | 0.0867 / 0.9177 | possibly in the training data |
da3-large-1.1 | Middlebury 2014 trainingH left, AbsRel / delta1 | 0.0418 / 0.9901 | 0.0419 / 0.9899 | 0.0418 / 0.9901 | 0.0419 / 0.9900 | possibly in the training data |
da3-giant-1.1 | NYUv2 test, AbsRel / delta1 | 0.0397 / 0.9794 | 0.0397 / 0.9794 | 0.0397 / 0.9794 | 0.0397 / 0.9794 | |
da3-giant-1.1 | iBims-1, AbsRel / delta1 | 0.0318 / 0.9819 | 0.0317 / 0.9820 | 0.0318 / 0.9820 | 0.0318 / 0.9819 | |
da3-giant-1.1 | ETH3D two-view train left, AbsRel / delta1 | 0.0705 / 0.9416 | 0.0704 / 0.9415 | 0.0704 / 0.9415 | 0.0704 / 0.9420 | possibly in the training data |
da3-giant-1.1 | Middlebury 2014 trainingH left, AbsRel / delta1 | 0.0284 / 0.9930 | 0.0284 / 0.9930 | 0.0284 / 0.9930 | 0.0284 / 0.9930 | possibly in the training data |
da3nested-giant-large-1.1 | NYUv2 test, AbsRel / delta1 | 0.0387 / 0.9809 | 0.0387 / 0.9810 | 0.0387 / 0.9809 | 0.0387 / 0.9809 | |
da3nested-giant-large-1.1 | iBims-1, AbsRel / delta1 | 0.0320 / 0.9825 | 0.0320 / 0.9826 | 0.0320 / 0.9824 | 0.0320 / 0.9825 | |
da3nested-giant-large-1.1 | ETH3D two-view train left, AbsRel / delta1 | 0.0761 / 0.9361 | 0.0762 / 0.9346 | 0.0761 / 0.9362 | 0.0760 / 0.9362 | possibly in the training data |
da3nested-giant-large-1.1 | Middlebury 2014 trainingH left, AbsRel / delta1 | 0.0298 / 0.9925 | 0.0299 / 0.9925 | 0.0298 / 0.9925 | 0.0298 / 0.9925 | possibly in the training data |
Measured on NVIDIA GeForce RTX 5060 Ti, torch 2.14.1+cu130, fastforks 468fba10, 2026-11-05 to 2026-11-06.
Parity
CPU, float32: max |diff| <= 0.005 vs the original. GPU, float16 (the default), portable and kernels: mean |diff| <= 0.5 % and p99 <= 2 % of the reference's median |value| (absolute error of the output depth).
| variant | kernels error vs original, mean / p99 | GPU, torch | kernels used |
|---|---|---|---|
da3mono-large | 0.00032 / 0.00078 | RTX 5060 Ti, torch 2.14.1+cu130 | dpt_fused@48e0065bb7cf:sm_120, fastbb@7d058322634d:sm_120 |
da3metric-large | 0.00196 / 0.00259 | RTX 5060 Ti, torch 2.14.1+cu130 | dpt_fused@48e0065bb7cf:sm_120, fastbb@7d058322634d:sm_120 |
da3-large-1.1 | 0.00011 / 0.00031 | RTX 5060 Ti, torch 2.14.1+cu130 | dpt_fused@48e0065bb7cf:sm_120, fastbb@7d058322634d:sm_120 |
da3-giant-1.1 | 0.00014 / 0.00037 | RTX 5060 Ti, torch 2.14.1+cu130 | dpt_fused@48e0065bb7cf:sm_120, fastbb@7d058322634d:sm_120 |
da3nested-giant-large-1.1 | 0.00151 / 0.00184 | RTX 5060 Ti, torch 2.14.1+cu130 | dpt_fused@48e0065bb7cf:sm_120, fastbb@7d058322634d:sm_120 |