SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2311.03784 · NeurIPS · 2023

UP-NeRF: Unconstrained Pose-Prior-Free Neural Radiance Fields

Hyunwoo Kim, Injae Kim, Minhyuk Choi

arXiv · PDF · Open in the Atlas

Code that ran

3 of 3 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; 1 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-23; 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/2311.03784.json · badge: /api/ran/2311.03784.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
mlvlab/UP-NeRF canonical (classifier label)
classifier basis: classifier_2025
3 ran · 0 no recorded run
FunctionStatusWhere it lives
L1_loss Ran
ran; our contract draft was wrong, not the code
mlvlab/UP-NeRF/losses.py
code served (permissive licence) · get_code("789502d06dd324aa")
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 2, dtype family float, shape (2, 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)

pred = torch.randn(2, 4)
target = torch.randn(2, 4)

ARGS = {
    "pred": pred,
    "target": target,
}
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 2, dtype family float, shape (2, 4) — shape (2, 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
L2_loss Ran
ran, honoured the contract we drafted
mlvlab/UP-NeRF/losses.py
code served (permissive licence) · get_code("0e6e4be0f2af787e")
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 2, dtype family float, shape (2, 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 small tensors for pred and target
# L2_loss computes (pred - target) ** 2, so both need to be numeric tensors
pred = torch.randn(2, 4)
target = torch.randn(2, 4)

ARGS = {
    "pred": pred,
    "target": target
}
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 2, dtype family float, shape (2, 4) — shape (2, 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
UPNeRFLoss Ran
ran on a synthesized input · constructed an object; no result was computed
mlvlab/UP-NeRF/losses.py
code served (permissive licence) · get_code("aab8af7e8d65e0f9")
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, UPNeRFLoss: the run constructed the object and did not call it, so no result was computed. 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 torch import nn

torch.manual_seed(0)

def L1_loss(pred, target):
    return torch.abs(pred - target)

def L2_loss(pred, target):
    return (pred - target) ** 2

class UPNeRFLoss(nn.Module):

    def __init__(self, depth_mult=0.0001, alpha_reg=1.0, encode_feat=True, fine=True):
        super().__init__()
        self.depth_mult = depth_mult
        self.alpha_reg = alpha_reg
        self.encode_feat = encode_feat
        self.fine = fine

    def forward(self, inputs, rgb_targets, feat_targets, depth_targets, schedule_mult):
        ret = {}
        if schedule_mult < 1:
            l_depth_c = L1_loss(inputs['s_depth_coarse'], depth_targets)
            if 't_weight_coarse' in inputs.keys():
                l_depth_c *= 1 - inputs['t_weight_coarse'].detach()
            ret['l_depth_c'] = l_depth_c.mean() * self.depth_mult * (1 - schedule_mult)
            if self.encode_feat:
                l_feat_c = L2_loss(inputs['feat_coarse'], feat_targets)
                ret['l_feat_c'] = l_feat_c.mean() * (1 - schedule_mult)
            else:
                l_c_rgb_c = L2_loss(inputs['c_rgb_coarse'], rgb_targets)
                ret['l_c_rgb_c'] = l_c_rgb_c.mean() * (1 - schedule_mult)
        if schedule_mult > 0:
            l_rgb_c = L2_loss(inputs['s_rgb_coarse'], rgb_targets)
            ret['l_rgb_c'] = l_rgb_c.mean() * schedule_mult / 2
        if not self.fine:
            return ret
        if schedule_mult < 1:
            l_depth_f = L1_loss(inputs['s_depth_fine'], depth_targets)
            if 't_weight_fine' in inputs.keys():
                l_depth_f *= 1 - inputs['t_weight_fine'].detach()
            ret['l_depth_f'] = l_depth_f.mean() * self.depth_mult * (1 - schedule_mult)
            if self.encode_feat:
                l_feat_f = L2_loss(inputs['feat_fine'], feat_targets)
                ret['l_feat_f'] = l_feat_f.mean() * (1 - schedule_mult)
            else:
                l_c_rgb_f = L2_loss(inputs['c_rgb_fine'], rgb_targets)
                ret['l_c_rgb_f'] = l_c_rgb_f.mean() * (1 - schedule_mult)
        if schedule_mult > 0:
            l_rgb_f = L2_loss(inputs['s_rgb_fine'], rgb_targets)
            l_rgb_f = l_rgb_f / (2 * inputs['t_beta'] ** 2)
            ret['l_rgb_f'] = l_rgb_f.mean() * schedule_mult
            ret['l_beta'] = torch.log(inputs['t_beta']).mean() * schedule_mult
            ret['l_alpha'] = inputs['t_alpha'].mean() * self.alpha_reg * schedule_mult
        return ret

batch_size = 2
rgb_dim = 3
feat_dim = 4
depth_dim = 1

rgb_targets = torch.randn(batch_size, rgb_dim)
feat_targets = torch.randn(batch_size, feat_dim)
depth_targets = torch.randn(batch_size, depth_dim)

inputs = {
    's_depth_coarse': torch.randn(batch_size, depth_dim),
    't_weight_coarse': torch.rand(batch_size, depth_dim),
    'feat_coarse': torch.randn(batch_size, feat_dim),
    'c_rgb_coarse': torch.randn(batch_size, rgb_dim),
    's_rgb_coarse': torch.randn(batch_size, rgb_dim),
    's_depth_fine': torch.randn(batch_size, depth_dim),
    't_weight_fine': torch.rand(batch_size, depth_dim),
    'feat_fine': torch.randn(batch_size, feat_dim),
    'c_rgb_fine': torch.randn(batch_size, rgb_dim),
    's_rgb_fine': torch.randn(batch_size, rgb_dim),
    't_beta': torch.ones(batch_size, 1) * 0.5,
    't_alpha': torch.rand(batch_size, 1),
}

ARGS = {
    'depth_mult': 0.0001,
    'alpha_reg': 1.0,
    'encode_feat': True,
    'fine': True,
}

loss_fn = UPNeRFLoss(**ARGS)
output = loss_fn(inputs, rgb_targets, feat_targets, depth_targets, schedule_mult=0.5)
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 UPNeRFLoss — 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 UPNeRFLoss 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

Also present in other papers' code

Of 3 samples lifted from this paper's linked repositories, 3 carry a function identity and 0 do not. Of the 3 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 3 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.

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

Neural Radiance Field (NeRF) has enabled novel view synthesis with high fidelity given images and camera poses. Subsequent works even succeeded in eliminating the necessity of pose priors by jointly optimizing NeRF and camera pose. However, these works are limited to relatively simple settings such as photometrically consistent and occluder-free image collections or a sequence of images from a video. So they have difficulty handling unconstrained images with varying illumination and transient occluders. In this paper, we propose UP-NeRF (Unconstrained Pose-prior-free Neural Radiance Fields) to optimize NeRF with unconstrained image collections without camera pose prior. We tackle these challenges with surrogate tasks that optimize color-insensitive feature fields and a separate module for transient occluders to block their influence on pose estimation. In addition, we introduce a candidate head to enable more robust pose estimation and transient-aware depth supervision to minimize the effect of incorrect prior. Our experiments verify the superior performance of our method compared to the baselines including BARF and its variants in a challenging internet photo collection, Phototourism dataset. The code of UP-NeRF is available at https://github.com/mlvlab/UP-NeRF.

For agents

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

get_harvested_code_for_paper("2311.03784")
get_code_for_paper("2311.03784")
have("2311.03784")

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

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

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

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

Connect an agent — have() is free.