SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2108.03830 · ICCV · 2021

Regularizing Nighttime Weirdness: Efficient Self-supervised Monocular Depth Estimation in the Dark

Jun Li, Kun Wang, Jian Yang, Xiang Li, Zhenyu Zhang, Zhiqiang Yan, Baobei Xu

arXiv · PDF · Open in the Atlas

Code that ran

5 of 7 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, 1 violated it and 0 have no contract verdict; 4 failures of our instrument; 2 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/2108.03830.json · badge: /api/ran/2108.03830.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
w2kun/RNW canonical (classifier label)
classifier basis: census
5 ran · 2 no recorded run
FunctionStatusWhere it lives
disp_to_depth Ran
ran, violated the contract we drafted
w2kun/RNW/components/layers.py
code served (permissive licence) · get_code("62287188376f0ba0")
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 tuple, ndim 4, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 numpy as np

torch.manual_seed(0)

# Create a small disparity tensor
# Shape: (batch_size=2, height=4, width=3)
disp = torch.rand(2, 4, 3)

# Set min_depth and max_depth as scalars
min_depth = 0.1
max_depth = 100.0

ARGS = {
    "disp": disp,
    "min_depth": min_depth,
    "max_depth": max_depth,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 4, dtype family float — a tuple output has no array shape of its own; none is stated
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
get_translation_matrix Ran
ran; our contract draft was wrong, not the code
w2kun/RNW/components/layers.py
code served (permissive licence) · get_code("955112f5788539a8")
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 3, dtype family float, shape (2, 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

torch.manual_seed(0)

# Create a translation vector with shape (batch_size=2, 3)
# The function expects a tensor with shape (N, 3) where N is batch size
translation_vector = torch.randn(2, 3)

ARGS = {
    "translation_vector": translation_vector
}
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 3, dtype family float, shape (2, 4, 4) — shape (2, 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
resnet18_backbone Ran
ran; our contract draft was wrong, not the code
w2kun/RNW/components/resnet_backbone.py
code served (permissive licence) · get_code("d4038a57f6d27063")
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 ResNet. The image it ran in was not recorded. If your copy returns the same type 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
from torchvision.models import resnet18
import torch.nn as nn

torch.manual_seed(0)

# The function resnet18_backbone takes:
# - pre_trained: bool (optional, defaults to False)
# - **kwargs: additional keyword arguments passed to resnet18()

# Since pre_trained=False by default, load_pretrained_weights won't be called
# The function will just create a resnet18 model with pretrained=False
# The **kwargs are passed to resnet18(), which accepts parameters like num_classes

ARGS = {
    'pre_trained': False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ResNet — a ResNet output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ResNet output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
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
resnet34_backbone Ran
ran; our contract draft was wrong, not the code
w2kun/RNW/components/resnet_backbone.py
code served (permissive licence) · get_code("67942fb482598128")
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 ResNet. The image it ran in was not recorded. If your copy returns the same type 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
from torchvision.models import resnet34

torch.manual_seed(0)

ARGS = {
    'pre_trained': False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ResNet — a ResNet output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ResNet output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
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
transformation_from_parameters Ran
ran; our contract draft was wrong, not the code
w2kun/RNW/components/layers.py
code served (permissive licence) · get_code("cdc03d6bfc4d3a34")
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 3, dtype family float, shape (2, 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

torch.manual_seed(0)

# Small batch size of 2, axisangle vectors are Bx1x3
axisangle = torch.randn(2, 1, 3)

# Small batch size of 2, translation vectors are Bx3
translation = torch.randn(2, 3)

# Boolean parameter for inversion
invert = False

ARGS = {
    "axisangle": axisangle,
    "translation": translation,
    "invert": invert,
}
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 3, dtype family float, shape (2, 4, 4) — shape (2, 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
build_disp_net Not yet run
unverified (harvested, no recorded run)
w2kun/RNW/models/rnw.py
code served (permissive licence) · get_code("27abb1e0e82cfc6d")
How it ran

no invocation recorded.

load_pretrained_weights Not yet run
unverified (harvested, no recorded run)
w2kun/RNW/components/resnet_backbone.py
code served (permissive licence) · get_code("f4042f393bf3b9db")
How it ran

no invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 6 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 6 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
disp_to_depth 18 other papers
3 dated earlier, 14 later, 1 same year, order not determinable
1806.01260 (2018-06)
Digging Into Self-Supervised Monocular Depth Estimation
1809.02627 (2018-09)
Unity: A General Platform for Intelligent Agents
1907.10326 (2019-07)
From Big to Small: Multi-Scale Local Planar Guidance for Monocular Depth Estimation
and 15 more not named here
transformation_from_parameters 17 other papers
3 dated earlier, 13 later, 1 same year, order not determinable
1809.02627 (2018-09)
Unity: A General Platform for Intelligent Agents
1907.10326 (2019-07)
From Big to Small: Multi-Scale Local Planar Guidance for Monocular Depth Estimation
2008.01484 (2020-08)
Learning Stereo from Single Images
and 14 more not named here
get_translation_matrix 14 other papers
3 dated earlier, 10 later, 1 same year, order not determinable
1809.02627 (2018-09)
Unity: A General Platform for Intelligent Agents
1907.10326 (2019-07)
From Big to Small: Multi-Scale Local Planar Guidance for Monocular Depth Estimation
2008.01484 (2020-08)
Learning Stereo from Single Images
and 11 more not named here
load_pretrained_weights 1 other paper
1 later
2203.11799 (2022-03)
AP-BSN: Self-Supervised Denoising for Real-World Images via Asymmetric PD and Blind-Spot Network
resnet18_backbone 1 other paper
1 later
2203.11799 (2022-03)
AP-BSN: Self-Supervised Denoising for Real-World Images via Asymmetric PD and Blind-Spot Network
resnet34_backbone 1 other paper
1 later
2203.11799 (2022-03)
AP-BSN: Self-Supervised Denoising for Real-World Images via Asymmetric PD and Blind-Spot Network

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

Monocular depth estimation aims at predicting depth from a single image or video. Recently, self-supervised methods draw much attention since they are free of depth annotations and achieve impressive performance on several daytime benchmarks. However, they produce weird outputs in more challenging nighttime scenarios because of low visibility and varying illuminations, which bring weak textures and break brightness-consistency assumption, respectively. To address these problems, in this paper we propose a novel framework with several improvements: (1) we introduce Priors-Based Regularization to learn distribution knowledge from unpaired depth maps and prevent model from being incorrectly trained; (2) we leverage Mapping-Consistent Image Enhancement module to enhance image visibility and contrast while maintaining brightness consistency; and (3) we present Statistics-Based Mask strategy to tune the number of removed pixels within textureless regions, using dynamic statistics. Experimental results demonstrate the effectiveness of each component. Meanwhile, our framework achieves remarkable improvements and state-of-the-art results on two nighttime datasets. Code is available at https://github.com/w2kun/RNW .

For agents

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

get_harvested_code_for_paper("2108.03830")
get_code_for_paper("2108.03830")
have("2108.03830")

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

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

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

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

Connect an agent — have() is free.