Papers › ZoeDepth: Zero-shot Transfer by Combining Relative and Metric Depth

ZoeDepth: Zero-shot Transfer by Combining Relative and Metric Depth

23 Feb 2023arXiv:2302.12288archive 2025-07-28

Shariq Farooq Bhat, Reiner Birkl, Diana Wofk, Peter Wonka, Matthias Müller

This paper tackles the problem of depth estimation from a single image. Existing work either focuses on generalization performance disregarding metric scale, i.e. relative depth estimation, or state-of-the-art results on specific datasets, i.e. metric depth estimation. We propose the first approach that combines both worlds, leading to a model with excellent generalization performance while maintaining metric scale. Our flagship model, ZoeD-M12-NK, is pre-trained on 12 datasets using relative depth and fine-tuned on two datasets using metric depth. We use a lightweight head with a novel bin adjustment design called metric bins module for each domain. During inference, each input image is automatically routed to the appropriate head using a latent classifier. Our framework admits multiple configurations depending on the datasets used for relative depth pre-training and metric fine-tuning. Without pre-training, we can already significantly improve the state of the art (SOTA) on the NYU Depth v2 indoor dataset. Pre-training on twelve datasets and fine-tuning on the NYU Depth v2 indoor dataset, we can further improve SOTA for a total of 21% in terms of relative absolute error (REL). Finally, ZoeD-M12-NK is the first model that can jointly train on multiple datasets (NYU Depth v2 and KITTI) without a significant drop in performance and achieve unprecedented zero-shot generalization performance to eight unseen datasets from both indoor and outdoor domains. The code and pre-trained models are publicly available at https://github.com/isl-org/ZoeDepth .

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2302.12288")

Code

Syntology Ran 10 of 16 code samples harvested from 2 repositories linked to this paper; 6 have no recorded run. Of those that ran: 6 ran · our draft was wrong; 1 ran · fixture could not drive it; 3 ran with no contract checked.

By repository: official repository: 1 sample from 1 repository, 1 ran; community (archive-listed): 14 samples from 1 repository, 8 ran; 1 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

isl-org/ZoeDepth officialmentioned in papermentioned on GitHubpytorch report
GuidoManni/BodySLAM mentioned on GitHubpytorch report
cake-lab/Mobile-AR-Depth-Estimation mentioned on GitHubpytorch report
intel-isl/MiDaS mentioned on GitHubpytorch report
isl-org/MiDaS mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

16 samples harvested; 10 ran; 0 honoured the contract we drafted; 6 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

6ran · our draft was wrong
1ran · fixture could not drive it
3ran
6unverified

Licence: 1 of the 16 samples is pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

infer isl-org/ZoeDepth/evaluate.py official repository ran · our draft was wrong MIT (permissive) · 8ffddb7d6410c4f1 · report
conv1x1 thygate/stable-diffusion-webui-depthmap-script/lib/Resnext_torch.py community (archive-listed) ran · our draft was wrong MIT (permissive) · d9def42110729a85 · report
conv3x3 thygate/stable-diffusion-webui-depthmap-script/lib/Resnext_torch.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 160bb14bd76201b4 · report
conv3x3 thygate/stable-diffusion-webui-depthmap-script/lib/Resnet.py community (archive-listed) ran · our draft was wrong MIT (permissive) · fac5364e2f53c6db · report
resnet18 thygate/stable-diffusion-webui-depthmap-script/lib/Resnet.py community (archive-listed) ran MIT (permissive) · 42823db097a59e8e · report
resnet34 thygate/stable-diffusion-webui-depthmap-script/lib/Resnet.py community (archive-listed) ran MIT (permissive) · 39037cdb0fe985b1 · report
scale_torch thygate/stable-diffusion-webui-depthmap-script/src/depthmap_generation.py community (archive-listed) ran MIT (permissive) · 9f120435a865e388 · report
strip_prefix_if_present thygate/stable-diffusion-webui-depthmap-script/lib/net_tools.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 5a951495ac113177 · report
weights_init thygate/stable-diffusion-webui-depthmap-script/inpaint/networks.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 96c6be3581e1f391 · report
estimateleres thygate/stable-diffusion-webui-depthmap-script/src/depthmap_generation.py community (archive-listed) unverified MIT (permissive) · 0314372534c03432 · report
estimatezoedepth thygate/stable-diffusion-webui-depthmap-script/src/depthmap_generation.py community (archive-listed) unverified MIT (permissive) · 13416aca1c543254 · report
get_func thygate/stable-diffusion-webui-depthmap-script/lib/net_tools.py community (archive-listed) unverified MIT (permissive) · 0d504dc72cd88b69 · report
get_installed_version thygate/stable-diffusion-webui-depthmap-script/install.py community (archive-listed) unverified MIT (permissive) · a467686f61537560 · report
resnext101_32x8d thygate/stable-diffusion-webui-depthmap-script/lib/Resnext_torch.py community (archive-listed) unverified MIT (permissive) · ff6eae1654f1ef39 · report
spectral_norm thygate/stable-diffusion-webui-depthmap-script/inpaint/networks.py community (archive-listed) unverified MIT (permissive) · b189ed0149b76880 · report
load_ckpt identical code first harvested elsewhere ran · fixture could not drive it licence of this copy not recorded · 6ff08048a8305588 · report

Tasks

Depth EstimationMonocular Depth EstimationZero-shot Generalization

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Monocular Depth Estimation NYU-Depth V2 ZoeD-M12-N Delta < 1.25 0.955 #26 of 85 Archive leaderboard report
Monocular Depth Estimation NYU-Depth V2 ZoeD-M12-N Delta < 1.25^2 0.995 #26 of 85 Archive leaderboard report
Monocular Depth Estimation NYU-Depth V2 ZoeD-M12-N Delta < 1.25^3 0.999 #26 of 85 Archive leaderboard report
Monocular Depth Estimation NYU-Depth V2 ZoeD-M12-N RMSE 0.270 #26 of 85 Archive leaderboard report
Monocular Depth Estimation NYU-Depth V2 ZoeD-M12-N absolute relative error 0.075 #26 of 85 Archive leaderboard report
Monocular Depth Estimation NYU-Depth V2 ZoeD-M12-N log 10 0.032 #26 of 85 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

Absolute Position EncodingsAdamAdaptiveBinsAttentionBPEDense ConnectionsDropoutLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxTransformer

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections