SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2403.18913 · CVPR · 2024

UniDepth: Universal Monocular Metric Depth Estimation

Siyuan Li, Luc Gool, Fisher Yu, Christos Sakaridis, Mattia Segu, Luigi Piccinelli, Yung-Hsu Yang

arXiv · PDF · Open in the Atlas

Code that ran

16 of 26 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 5 have no contract verdict; 11 failures of our instrument; 10 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2403.18913.json · badge: /api/ran/2403.18913.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
lpiccinelli-eth/unidepth marked official in Papers with Code
Papers with Code archive
15 ran · 8 no recorded run
ibaiGorordo/ONNX-Unidepth-Monocular-Metric-Depth-Estimation community (classifier label)
classifier basis not recorded on the link
1 ran · 0 no recorded run
henry123-boy/SpaTracker community
Papers with Code archive
0 ran · 2 no recorded run
FunctionStatusWhere it lives
ListAdapter Ran
ran on a synthesized input
lpiccinelli-eth/unidepth/unidepth/models/unidepthv1/unidepthv1.py
pointer only (licence: NOASSERTION) · get_code("5e4cca49cac4d80e")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, lpiccinelli-eth/unidepth (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

_paddings Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
lpiccinelli-eth/unidepth/unidepth/models/unidepthv1/unidepthv1.py
pointer only (licence: NOASSERTION) · get_code("95084bc240332452")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, lpiccinelli-eth/unidepth (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

_postprocess Ran
ran; our contract draft was wrong, not the code
lpiccinelli-eth/unidepth/unidepth/models/unidepthv1/unidepthv1.py
pointer only (licence: NOASSERTION) · get_code("d5d4d422a21b0a05")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, lpiccinelli-eth/unidepth (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

_preprocess Ran
ran; our contract draft was wrong, not the code
lpiccinelli-eth/unidepth/unidepth/models/unidepthv1/unidepthv1.py
pointer only (licence: NOASSERTION) · get_code("27638cf0225e17aa")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, lpiccinelli-eth/unidepth (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

_shapes Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
lpiccinelli-eth/unidepth/unidepth/models/unidepthv1/unidepthv1.py
pointer only (licence: NOASSERTION) · get_code("6d5d386b010a90cc")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, lpiccinelli-eth/unidepth (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

colorize_map Ran
ran on a synthesized input
ibaiGorordo/ONNX-Unidepth-Monocular-Metric-Depth-Estimation/unidepth/UniDepth.py
code served (permissive licence) · get_code("b270379104db863c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 3, dtype family int, shape (4, 5, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import cv2
import numpy as np

# Create a small 2D numpy array to serve as the map
# Using a 4x5 array with values in range [0, 10]
map_data = np.array([
    [1.0, 2.0, 3.0, 4.0, 5.0],
    [2.0, 4.0, 6.0, 8.0, 10.0],
    [3.0, 6.0, 9.0, 7.0, 5.0],
    [1.0, 3.0, 5.0, 7.0, 9.0]
], dtype=np.float32)

ARGS = {
    "map": map_data,
    "max_value": -1,
    "invert": True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cv2, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 3, dtype family int, shape (4, 5, 3) — shape (4, 5, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
flat_interpolate Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
lpiccinelli-eth/unidepth/unidepth/models/unidepthv1/unidepthv1.py
pointer only (licence: NOASSERTION) · get_code("ab5f0cf7db8829b0")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, lpiccinelli-eth/unidepth (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_params Ran
ran; our contract draft was wrong, not the code
lpiccinelli-eth/unidepth/unidepth/models/unidepthv1/unidepthv1.py
pointer only (licence: NOASSERTION) · get_code("1a61b6729f16be14")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, lpiccinelli-eth/unidepth (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_rank Ran
ran on a synthesized input
lpiccinelli-eth/unidepth/unidepth/models/unidepthv1/unidepthv1.py
pointer only (licence: NOASSERTION) · get_code("21f13ea283351acc")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, lpiccinelli-eth/unidepth (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

is_dist_avail_and_initialized Ran
ran on a synthesized input
lpiccinelli-eth/unidepth/unidepth/models/unidepthv1/unidepthv1.py
pointer only (licence: NOASSERTION) · get_code("776d3f86791004d1")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, lpiccinelli-eth/unidepth (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

is_main_process Ran
ran on a synthesized input
lpiccinelli-eth/unidepth/unidepth/models/unidepthv1/unidepthv1.py
pointer only (licence: NOASSERTION) · get_code("e17a1e0c67eaf7b8")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, lpiccinelli-eth/unidepth (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

match_gt Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
lpiccinelli-eth/unidepth/unidepth/models/unidepthv1/unidepthv1.py
pointer only (licence: NOASSERTION) · get_code("c54375eea881eda0")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, lpiccinelli-eth/unidepth (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

match_intrinsics Ran
ran; our contract draft was wrong, not the code
lpiccinelli-eth/unidepth/unidepth/models/unidepthv1/unidepthv1.py
pointer only (licence: NOASSERTION) · get_code("be3fb71a3dda1ed6")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, lpiccinelli-eth/unidepth (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

max_stack Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
lpiccinelli-eth/unidepth/unidepth/models/unidepthv1/unidepthv1.py
pointer only (licence: NOASSERTION) · get_code("0d444610e9aa423f")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, lpiccinelli-eth/unidepth (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

rsh_cart_8 Ran
ran; our contract draft was wrong, not the code
lpiccinelli-eth/unidepth/unidepth/models/unidepthv1/unidepthv1.py
pointer only (licence: NOASSERTION) · get_code("c7571a839bb7916c")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, lpiccinelli-eth/unidepth (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

spherical_zbuffer_to_euclidean Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
lpiccinelli-eth/unidepth/unidepth/models/unidepthv1/unidepthv1.py
pointer only (licence: NOASSERTION) · get_code("2f4bab52957d3b0e")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, lpiccinelli-eth/unidepth (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

AttentionBlock Not yet run
unverified (harvested, no recorded run)
lpiccinelli-eth/unidepth/unidepth/models/unidepthv1/unidepthv1.py
pointer only (licence: NOASSERTION) · get_code("3bbe2dc4e9f7b54b")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, lpiccinelli-eth/unidepth (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

CameraHead Not yet run
unverified (harvested, no recorded run)
lpiccinelli-eth/unidepth/unidepth/models/unidepthv1/unidepthv1.py
pointer only (licence: NOASSERTION) · get_code("bfbc779ee61e385c")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, lpiccinelli-eth/unidepth (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

DPTHead Not yet run
unverified (harvested, no recorded run)
henry123-boy/SpaTracker/models/monoD/depth_anything/dpt.py
pointer only (licence: NOASSERTION) · get_code("5f8c327ff4b304d4")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, henry123-boy/SpaTracker (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

DPT_DINOv2 Not yet run
unverified (harvested, no recorded run)
henry123-boy/SpaTracker/models/monoD/depth_anything/dpt.py
pointer only (licence: NOASSERTION) · get_code("c918b2b60a6b0cf2")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, henry123-boy/SpaTracker (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Decoder Not yet run
unverified (harvested, no recorded run)
lpiccinelli-eth/unidepth/unidepth/models/unidepthv1/unidepthv1.py
pointer only (licence: NOASSERTION) · get_code("4fed83b01592cd1b")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, lpiccinelli-eth/unidepth (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

DepthHead Not yet run
unverified (harvested, no recorded run)
lpiccinelli-eth/unidepth/unidepth/models/unidepthv1/unidepthv1.py
pointer only (licence: NOASSERTION) · get_code("50c790a0244300f6")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, lpiccinelli-eth/unidepth (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

ProfileMethod Not yet run
unverified (harvested, no recorded run)
lpiccinelli-eth/unidepth/unidepth/models/unidepthv1/unidepthv1.py
pointer only (licence: NOASSERTION) · get_code("2a686a5ac19872b4")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, lpiccinelli-eth/unidepth (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

UniDepthV1 Not yet run
unverified (harvested, no recorded run)
lpiccinelli-eth/unidepth/unidepth/models/unidepthv1/unidepthv1.py
pointer only (licence: NOASSERTION) · get_code("5e7bb5ae1c94af71")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, lpiccinelli-eth/unidepth (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

generate_rays Not yet run
unverified (harvested, no recorded run)
lpiccinelli-eth/unidepth/unidepth/models/unidepthv1/unidepthv1.py
pointer only (licence: NOASSERTION) · get_code("c136d0e4ba11d802")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, lpiccinelli-eth/unidepth (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

profile_method Not yet run
unverified (harvested, no recorded run)
lpiccinelli-eth/unidepth/unidepth/models/unidepthv1/unidepthv1.py
pointer only (licence: NOASSERTION) · get_code("4fa984f2f2be8ec1")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, lpiccinelli-eth/unidepth (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 26 samples lifted from this paper's linked repositories, 26 carry a function identity and 0 do not. Of the 26 distinct functions with an identity, 4 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 1 the same month, 4 later) and 22 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
is_dist_avail_and_initialized
brick of this paper's assembly: helper
21 other papers
12 dated earlier, 2 the same month, 7 later · 20 only as an assembly brick
2006.09882 (2020-06)
Unsupervised Learning of Visual Features by Contrasting Cluster Assignments
2104.01136 (2021-04)
LeViT: a Vision Transformer in ConvNet's Clothing for Faster Inference
2104.07434 (2021-04)
Points as Queries: Weakly Semi-supervised Object Detection by Points
and 18 more not named here
get_rank
brick of this paper's assembly: helper
13 other papers
8 dated earlier, 5 later · 12 only as an assembly brick
2006.09882 (2020-06)
Unsupervised Learning of Visual Features by Contrasting Cluster Assignments
2104.01136 (2021-04)
LeViT: a Vision Transformer in ConvNet's Clothing for Faster Inference
2301.02241 (2023-01)
CiT: Curation in Training for Effective Vision-Language Data
and 10 more not named here
is_main_process
brick of this paper's assembly: helper
8 other papers
5 dated earlier, 3 later · 7 only as an assembly brick
2104.01136 (2021-04)
LeViT: a Vision Transformer in ConvNet's Clothing for Faster Inference
2301.02241 (2023-01)
CiT: Curation in Training for Effective Vision-Language Data
2301.10222 (2023-01)
RangeViT: Towards Vision Transformers for 3D Semantic Segmentation in Autonomous Driving
and 5 more not named here
DPTHead
brick of this paper's assembly: model
1 other paper
1 later
2601.00533 (2026-01)
All-in-One Video Restoration under Smoothly Evolving Unknown Weather Degradations

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Accurate monocular metric depth estimation (MMDE) is crucial to solving downstream tasks in 3D perception and modeling. However, the remarkable accuracy of recent MMDE methods is confined to their training domains. These methods fail to generalize to unseen domains even in the presence of moderate domain gaps, which hinders their practical applicability. We propose a new model, UniDepth, capable of reconstructing metric 3D scenes from solely single images across domains. Departing from the existing MMDE methods, UniDepth directly predicts metric 3D points from the input image at inference time without any additional information, striving for a universal and flexible MMDE solution. In particular, UniDepth implements a self-promptable camera module predicting dense camera representation to condition depth features. Our model exploits a pseudo-spherical output representation, which disentangles camera and depth representations. In addition, we propose a geometric invariance loss that promotes the invariance of camera-prompted depth features. Thorough evaluations on ten datasets in a zero-shot regime consistently demonstrate the superior performance of UniDepth, even when compared with methods directly trained on the testing domains. Code and models are available at: github.com/lpiccinelli-eth/unidepth.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2403.18913")
get_code_for_paper("2403.18913")
have("2403.18913")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2403.18913.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2403.18913.svg)](https://syntology.ai/paper/2403.18913)

Connect an agent — have() is free.