SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2107.02791 · 2021

Depth-supervised NeRF: Fewer Views and Faster Training for Free

arXiv · PDF · Open in the Atlas

Code that ran

3 of 4 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (1 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 2 failures of our instrument; 1 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/2107.02791.json · badge: /api/ran/2107.02791.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
dunbar12138/DSNeRF canonical (classifier label)
classifier basis: classifier_2025
1 ran · 1 no recorded run
copy not recorded community
not in the paper's declared repositories
2 ran · 0 no recorded run
FunctionStatusWhere it lives
SigmaLoss Ran
ran on a synthesized input · constructed an object; no result was computed
dunbar12138/DSNeRF/loss.py
code served (permissive licence) · get_code("b1a776ff4a8c60b4")
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 an instance of its own class, SigmaLoss: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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
import torch.nn as nn

torch.manual_seed(0)

# Create a simple network that takes pts and viewdirs and returns raw values
class SimpleNetwork(nn.Module):
    def __init__(self):
        super(SimpleNetwork, self).__init__()
        self.fc = nn.Linear(6, 4)  # 3 for pts + 3 for viewdirs -> 4 for raw output
    
    def forward(self, pts, viewdirs):
        # pts shape: (N_rays, N_samples, 3)
        # viewdirs shape: (N_rays, 3)
        batch_size = pts.shape[0]
        n_samples = pts.shape[1]
        
        # Flatten pts to (N_rays * N_samples, 3)
        pts_flat = pts.reshape(-1, 3)
        
        # Repeat viewdirs to match (N_rays * N_samples, 3)
        viewdirs_expanded = viewdirs.repeat_interleave(n_samples, dim=0)
        
        # Concatenate and pass through network
        combined = torch.cat([pts_flat, viewdirs_expanded], dim=-1)
        raw_flat = self.fc(combined)
        
        # Reshape back to (N_rays, N_samples, 4)
        raw = raw_flat.reshape(batch_size, n_samples, 4)
        return raw

# Create the run_func that calls the network
def run_func(pts, viewdirs, network):
    return network(pts, viewdirs)

# Create small tensors for testing
N_rays = 2
N_samples = 4

rays_o = torch.randn(N_rays, 3)
rays_d = torch.randn(N_rays, 3)
rays_d = rays_d / torch.norm(rays_d, dim=-1, keepdim=True)  # normalize
viewdirs = torch.randn(N_rays, 3)
viewdirs = viewdirs / torch.norm(viewdirs, dim=-1, keepdim=True)  # normalize
near = torch.tensor(0.1)
far = torch.tensor(10.0)
depths = torch.randn(N_rays)

network = SimpleNetwork()

ARGS = {
    'N_samples': N_samples,
    'perturb': 0.5,
    'raw_noise_std': 0.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 SigmaLoss — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a SigmaLoss 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
batchify Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from greatdrake/reparameterized-volume-sampling
pointer only · get_code("fd57e365830d09de")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

run_network Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from greatdrake/reparameterized-volume-sampling
pointer only · get_code("8f235fb889b93174")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

batchify_rays Not yet run
unverified (harvested, no recorded run)
dunbar12138/DSNeRF/run_nerf.py
code served (permissive licence) · get_code("883f8089caf271fe")
How it ran

no invocation recorded.

Also present in other papers' code

Of 4 samples lifted from this paper's linked repositories, 4 carry a function identity and 0 do not. Of the 4 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 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
batchify 17 other papers
4 dated earlier, 13 later
2003.08934 (2020-03)
NeRF: Representing Scenes as Neural Radiance Fields for View Synthesis
2102.07064 (2021-02)
NeRF--: Neural Radiance Fields Without Known Camera Parameters
2104.04073 (2021-04)
Direct-PoseNet: Absolute Pose Regression with Photometric Consistency
and 14 more not named here
run_network 11 other papers
3 dated earlier, 8 later
2003.08934 (2020-03)
NeRF: Representing Scenes as Neural Radiance Fields for View Synthesis
2102.07064 (2021-02)
NeRF--: Neural Radiance Fields Without Known Camera Parameters
2104.04073 (2021-04)
Direct-PoseNet: Absolute Pose Regression with Photometric Consistency
and 8 more not named here
batchify_rays 6 other papers
1 dated earlier, 5 later
2003.08934 (2020-03)
NeRF: Representing Scenes as Neural Radiance Fields for View Synthesis
2201.05989 (2022-01)
Instant neural graphics primitives with a multiresolution hash encoding
2209.08546 (2022-09)
ActiveNeRF: Learning where to See with Uncertainty Estimation
and 3 more not named here

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

A commonly observed failure mode of Neural Radiance Field (NeRF) is fitting incorrect geometries when given an insufficient number of input views. One potential reason is that standard volumetric rendering does not enforce the constraint that most of a scene's geometry consist of empty space and opaque surfaces. We formalize the above assumption through DS-NeRF (Depth-supervised Neural Radiance Fields), a loss for learning radiance fields that takes advantage of readily-available depth supervision. We leverage the fact that current NeRF pipelines require images with known camera poses that are typically estimated by running structure-from-motion (SFM). Crucially, SFM also produces sparse 3D points that can be used as "free" depth supervision during training: we add a loss to encourage the distribution of a ray's terminating depth matches a given 3D keypoint, incorporating depth uncertainty. DS-NeRF can render better images given fewer training views while training 2-3x faster. Further, we show that our loss is compatible with other recently proposed NeRF methods, demonstrating that depth is a cheap and easily digestible supervisory signal. And finally, we find that DS-NeRF can support other types of depth supervision such as scanned depth sensors and RGB-D reconstruction outputs.

For agents

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

get_harvested_code_for_paper("2107.02791")
get_code_for_paper("2107.02791")
have("2107.02791")

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

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

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

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

Connect an agent — have() is free.