SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2209.09050 · 2022

Loc-NeRF: Monte Carlo Localization using Neural Radiance Fields

arXiv · PDF · Open in the Atlas

Code that ran

7 of 9 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 2 have no contract verdict; 5 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/2209.09050.json · badge: /api/ran/2209.09050.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
mit-spark/loc-nerf canonical (classifier label)
classifier basis not recorded on the link
7 ran · 2 no recorded run
FunctionStatusWhere it lives
batchify Ran
ran; our contract draft was wrong, not the code
mit-spark/loc-nerf/src/full_nerf_helpers.py
code served (permissive licence) · get_code("fd57e365830d09de")
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) and returned function. 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
import torch.nn as nn

torch.manual_seed(0)

# Define a simple function that processes batches
def simple_fn(inputs):
    """A simple function that takes a tensor and returns a processed tensor."""
    return inputs * 2

# Create a small input tensor (batch_size=4, features=3)
input_tensor = torch.randn(4, 3)

# Define chunk size for batching
chunk_size = 2

ARGS = {
    "fn": simple_fn,
    "chunk": chunk_size
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
get_embedder Ran
ran; our contract draft was wrong, not the code
mit-spark/loc-nerf/src/full_nerf_helpers.py
code served (permissive licence) · get_code("d26ffa77f1cd53a6")
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) and returned tuple, ndim 1, 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 torch.nn as nn

torch.manual_seed(0)

ARGS = {
    'multires': 4,
    'i': 0
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, 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_pose Ran
ran on a synthesized input
mit-spark/loc-nerf/src/utils.py
code served (permissive licence) · get_code("60ed76adfd8aa0ea")
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 (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 numpy as np

# Construct arguments for get_pose function
ARGS = {
    "phi": 45.0,
    "theta": 30.0,
    "psi": 60.0,
    "x": 1.0,
    "y": 2.0,
    "z": 3.0,
    "obs_img_pose": np.array([[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]),
    "center_about_true_pose": True,
}
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 (4, 4) — shape (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
get_rays Ran
ran; our contract draft was wrong, not the code
mit-spark/loc-nerf/src/render_helpers.py
code served (permissive licence) · get_code("c03007b6cafd9690")
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)

# Parameters for get_rays function
H = 2  # image height
W = 4  # image width
focal = 500.0  # focal length

# camera-to-world transformation matrix (4x4)
c2w = torch.tensor([
    [1.0, 0.0, 0.0, 0.0],
    [0.0, 1.0, 0.0, 0.0],
    [0.0, 0.0, 1.0, 5.0],
    [0.0, 0.0, 0.0, 1.0]
], dtype=torch.float32)

ARGS = {
    "H": H,
    "W": W,
    "focal": focal,
    "c2w": c2w
}
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_rays_np Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
mit-spark/loc-nerf/src/render_helpers.py
code served (permissive licence) · get_code("929e526ea6fc4975")
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 numpy as np

# Camera intrinsics
H = 64  # image height
W = 128  # image width
focal = 50.0  # focal length

# Camera-to-world transformation matrix (4x4)
# Top 3 rows are used by the function
c2w = np.array([
    [1.0, 0.0, 0.0, 0.0],
    [0.0, 1.0, 0.0, 0.0],
    [0.0, 0.0, 1.0, 5.0],
    [0.0, 0.0, 0.0, 1.0]
], dtype=np.float32)

ARGS = {
    'H': H,
    'W': W,
    'focal': focal,
    'c2w': c2w
}
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 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
ndc_rays Ran
ran; our contract draft was wrong, not the code
mit-spark/loc-nerf/src/render_helpers.py
pointer only (licence: MIT); the stored copy get_code serves, from sunset1995/directvoxgo, is pointer only (licence: NOASSERTION) · get_code("4366d225ac2fe16d")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from sunset1995/directvoxgo, and GitHub could not classify the licence of that repository (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.

rgb2bgr Ran
ran on a synthesized input
mit-spark/loc-nerf/src/utils.py
code served (permissive licence) · get_code("1f17e82449269b3b")
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, 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 cv2
import numpy as np

# Create a small valid RGB image
# cv2.cvtColor expects uint8 or float32/float64 images
# For RGB to BGR conversion, we need a 3-channel image
img_rgb = np.random.randint(0, 256, size=(4, 3, 3), dtype=np.uint8)

ARGS = {
    "img_rgb": img_rgb
}
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, 3, 3) — shape (4, 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
load_blender Not yet run
unverified (harvested, no recorded run)
mit-spark/loc-nerf/src/utils.py
code served (permissive licence) · get_code("ec416c81cecb9865")
How it ran

no invocation recorded.

load_nerf Not yet run
unverified (harvested, no recorded run)
mit-spark/loc-nerf/src/full_nerf_helpers.py
code served (permissive licence) · get_code("01ae531174d0751c")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 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 4 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
9 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 14 more not named here
ndc_rays 10 other papers
4 dated earlier, 6 later
2104.04073 (2021-04)
Direct-PoseNet: Absolute Pose Regression with Photometric Consistency
2111.11215 (2021-11)
Direct Voxel Grid Optimization: Super-fast Convergence for Radiance Fields Reconstruction
2202.05263 (2022-02)
Block-NeRF: Scalable Large Scene Neural View Synthesis
and 7 more not named here
get_embedder 3 other papers
1 dated earlier, 2 later
2208.00945 (2022-08)
DoF-NeRF: Depth-of-Field Meets Neural Radiance Fields
2311.09077 (2023-11)
Spiking NeRF: Representing the Real-World Geometry by a Discontinuous Representation
get_rays 1 other paper
1 dated earlier
2104.04073 (2021-04)
Direct-PoseNet: Absolute Pose Regression with Photometric Consistency
get_rays_np 1 other paper
1 dated earlier
2104.04073 (2021-04)
Direct-PoseNet: Absolute Pose Regression with Photometric Consistency

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

We present Loc-NeRF, a real-time vision-based robot localization approach that combines Monte Carlo localization and Neural Radiance Fields (NeRF). Our system uses a pre-trained NeRF model as the map of an environment and can localize itself in real-time using an RGB camera as the only exteroceptive sensor onboard the robot. While neural radiance fields have seen significant applications for visual rendering in computer vision and graphics, they have found limited use in robotics. Existing approaches for NeRF-based localization require both a good initial pose guess and significant computation, making them impractical for real-time robotics applications. By using Monte Carlo localization as a workhorse to estimate poses using a NeRF map model, Loc-NeRF is able to perform localization faster than the state of the art and without relying on an initial pose estimate. In addition to testing on synthetic data, we also run our system using real data collected by a Clearpath Jackal UGV and demonstrate for the first time the ability to perform real-time global localization with neural radiance fields. We make our code publicly available at https://github.com/MIT-SPARK/Loc-NeRF.

For agents

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

get_harvested_code_for_paper("2209.09050")
get_code_for_paper("2209.09050")
have("2209.09050")

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

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

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

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

Connect an agent — have() is free.