SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2202.03131 · 2022

Transformers in Self-Supervised Monocular Depth Estimation with Unknown Camera Intrinsics

arXiv · PDF · Open in the Atlas

Code that ran

6 of 6 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; 4 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 1 failure of our instrument; 0 no recorded run), measured 2026-11-22; 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/2202.03131.json · badge: /api/ran/2202.03131.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
neurai-lab/mt-sfmlearner community (classifier label)
classifier basis not recorded on the link
6 ran · 0 no recorded run
FunctionStatusWhere it lives
SSIM Ran
ran on a synthesized input
neurai-lab/mt-sfmlearner/mtsfmlearner/losses/multiview_photometric_loss.py
code served (permissive licence) · get_code("275e5e769187fecc")
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 Tensor, ndim 4, dtype family float, shape (2, 3, 4, 4) 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 torch
import torch.nn as nn

torch.manual_seed(0)

# Create two small batch tensors of shape [B, 3, H, W]
# B=2 (batch), 3 (RGB channels), H=4, W=4 (spatial dims)
x = torch.randn(2, 3, 4, 4)
y = torch.randn(2, 3, 4, 4)

ARGS = {
    "x": x,
    "y": y,
    "C1": 0.0001,
    "C2": 0.0009,
    "kernel_size": 3,
    "stride": 1,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, shape (2, 3, 4, 4) — shape (2, 3, 4, 4) 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
read_npz_depth Ran
ran, honoured the contract we drafted
neurai-lab/mt-sfmlearner/mtsfmlearner/datasets/kitti_dataset.py
code served (permissive licence) · get_code("1c9d1d852e11deaf")
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 float, shape (4, 3, 1) 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 numpy as np
import tempfile
import os

# Create a temporary .npz file with depth data
temp_dir = tempfile.mkdtemp()
temp_file = os.path.join(temp_dir, "test_depth.npz")

# Create sample depth data
depth_data = np.random.rand(4, 3).astype(np.float32)
np.savez(temp_file, stereo_depth=depth_data)

# Define arguments
ARGS = {
    "file": temp_file,
    "depth_type": "stereo"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
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 float, shape (4, 3, 1) — shape (4, 3, 1) 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
resize_depth Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
neurai-lab/mt-sfmlearner/mtsfmlearner/datasets/augmentations.py
code served (permissive licence) · get_code("837c6a474dd26eff")
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 float, shape (3, 6, 1) 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 depth map (height=5, width=4)
depth_map = np.random.rand(5, 4).astype(np.float32) * 10

# Define target shape (H=3, W=6)
target_shape = (3, 6)

ARGS = {
    'depth': depth_map,
    'shape': target_shape,
}
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 float, shape (3, 6, 1) — shape (3, 6, 1) 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
rotx Ran
ran, honoured the contract we drafted
neurai-lab/mt-sfmlearner/mtsfmlearner/datasets/kitti_dataset_utils.py
code served (permissive licence) · get_code("5c94a7e309621404")
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 2, dtype family float, shape (3, 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 numpy as np

# The function rotx takes a single parameter t (float - theta angle)
# and returns a 3x3 rotation matrix about the x-axis.
# The function uses np.cos, np.sin, and np.array operations on t.

ARGS = {
    "t": 0.5  # A simple float angle in radians
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (3, 3) — shape (3, 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
roty Ran
ran, honoured the contract we drafted
neurai-lab/mt-sfmlearner/mtsfmlearner/datasets/kitti_dataset_utils.py
code served (permissive licence) · get_code("0a19721bdaffaddd")
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 2, dtype family float, shape (3, 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 numpy as np

ARGS = {
    "t": 0.5
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (3, 3) — shape (3, 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
rotz Ran
ran, honoured the contract we drafted
neurai-lab/mt-sfmlearner/mtsfmlearner/datasets/kitti_dataset_utils.py
code served (permissive licence) · get_code("e1451f5589db8939")
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 2, dtype family float, shape (3, 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 numpy as np

ARGS = {
    "t": 0.5
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (3, 3) — shape (3, 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

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 5 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 0 the same month, 3 later) and 1 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
roty 13 other papers
6 dated earlier, 6 later, 1 same year, order not determinable
1612.07695 (2016-12)
MultiNet: Real-time Joint Semantic Reasoning for Autonomous Driving
1811.07782 (2018-11)
Modeling Local Geometric Structure of 3D Point Clouds using Geo-CNN
1912.12147 (2019-12)
Cooperative Perception for 3D Object Detection in Driving Scenarios using Infrastructure Sensors
and 10 more not named here
rotx 12 other papers
6 dated earlier, 5 later, 1 same year, order not determinable
1612.07695 (2016-12)
MultiNet: Real-time Joint Semantic Reasoning for Autonomous Driving
1811.07782 (2018-11)
Modeling Local Geometric Structure of 3D Point Clouds using Geo-CNN
1912.12147 (2019-12)
Cooperative Perception for 3D Object Detection in Driving Scenarios using Infrastructure Sensors
and 9 more not named here
rotz 8 other papers
6 dated earlier, 1 later, 1 same year, order not determinable
1612.07695 (2016-12)
MultiNet: Real-time Joint Semantic Reasoning for Autonomous Driving
1811.07782 (2018-11)
Modeling Local Geometric Structure of 3D Point Clouds using Geo-CNN
1912.12147 (2019-12)
Cooperative Perception for 3D Object Detection in Driving Scenarios using Infrastructure Sensors
and 5 more not named here
read_npz_depth 2 other papers
2 dated earlier
2002.12319 (2020-02)
Semantically-Guided Representation Learning for Self-Supervised Monocular Depth
2103.16694 (2021-03)
Geometric Unsupervised Domain Adaptation for Semantic Segmentation
resize_depth 2 other papers
2 dated earlier
2002.12319 (2020-02)
Semantically-Guided Representation Learning for Self-Supervised Monocular Depth
2103.16694 (2021-03)
Geometric Unsupervised Domain Adaptation for Semantic Segmentation

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-22.

Repositories linked to this paper

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

Abstract

The advent of autonomous driving and advanced driver assistance systems necessitates continuous developments in computer vision for 3D scene understanding. Self-supervised monocular depth estimation, a method for pixel-wise distance estimation of objects from a single camera without the use of ground truth labels, is an important task in 3D scene understanding. However, existing methods for this task are limited to convolutional neural network (CNN) architectures. In contrast with CNNs that use localized linear operations and lose feature resolution across the layers, vision transformers process at constant resolution with a global receptive field at every stage. While recent works have compared transformers against their CNN counterparts for tasks such as image classification, no study exists that investigates the impact of using transformers for self-supervised monocular depth estimation. Here, we first demonstrate how to adapt vision transformers for self-supervised monocular depth estimation. Thereafter, we compare the transformer and CNN-based architectures for their performance on KITTI depth prediction benchmarks, as well as their robustness to natural corruptions and adversarial attacks, including when the camera intrinsics are unknown. Our study demonstrates how transformer-based architecture, though lower in run-time efficiency, achieves comparable performance while being more robust and generalizable.

For agents

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

get_harvested_code_for_paper("2202.03131")
get_code_for_paper("2202.03131")
have("2202.03131")

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

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

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

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

Connect an agent — have() is free.