SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2205.15585 · NeurIPS · 2022

Decomposing NeRF for Editing via Feature Field Distillation

Sosuke Kobayashi, Vincent Sitzmann, Eiichi Matsumoto

arXiv · PDF · Open in the Atlas

Code that ran

10 of 10 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; 1 honoured the contract we drafted, 0 violated it and 7 have no contract verdict; 2 failures of our instrument; 0 no recorded run), measured 2026-11-23; 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/2205.15585.json · badge: /api/ran/2205.15585.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
kwea123/ngp_pl canonical (classifier label)
classifier basis not recorded on the link
10 ran · 0 no recorded run
FunctionStatusWhere it lives
extract_model_state_dict Ran
ran on a synthesized input
kwea123/ngp_pl/utils.py
code served (permissive licence) · get_code("71d7e1a38cfef0f4")
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 dict. 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 tempfile
import os

torch.manual_seed(0)

# Create a temporary checkpoint file with state_dict
temp_dir = tempfile.mkdtemp()
ckpt_path = os.path.join(temp_dir, "checkpoint.pt")

# Create a sample checkpoint with a state_dict containing model parameters
checkpoint = {
    'state_dict': {
        'model.layer1.weight': torch.randn(4, 3),
        'model.layer1.bias': torch.randn(4),
        'model.layer2.weight': torch.randn(5, 4),
        'other_prefix.weight': torch.randn(3, 3),
    }
}

torch.save(checkpoint, ckpt_path)

ARGS = {
    'ckpt_path': ckpt_path,
    'model_name': 'model',
    'prefixes_to_ignore': ['layer2']
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
linear_to_srgb Ran
ran on a synthesized input
kwea123/ngp_pl/datasets/color_utils.py
code served (permissive licence) · get_code("fe8b73b01e9a52fe")
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 (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 numpy as np

# Create a small linear image array with values in the linear color space
# The function expects values roughly in [0, 1] range before conversion to sRGB
img = np.array([
    [0.0, 0.001, 0.0031308, 0.05],
    [0.1, 0.5, 0.8, 1.2]
], dtype=np.float32)

ARGS = {
    "img": img
}
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 (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
mse Ran
ran on a synthesized input
kwea123/ngp_pl/metrics.py
code served (permissive licence) · get_code("c832923b546e9fb3")
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 0, dtype family float, shape () 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 small test tensors
# image_pred: predicted image tensor
image_pred = torch.randn(2, 4)

# image_gt: ground truth image tensor (same shape as image_pred)
image_gt = torch.randn(2, 4)

# valid_mask: boolean mask indicating which elements are valid (optional)
valid_mask = torch.tensor([[True, False, True, False], [True, True, False, True]])

# reduction: string parameter for how to reduce the output
reduction = 'mean'

ARGS = {
    'image_pred': image_pred,
    'image_gt': image_gt,
    'valid_mask': valid_mask,
    'reduction': reduction
}
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 0, dtype family float, shape () — shape () 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
psnr Ran
ran on a synthesized input
kwea123/ngp_pl/metrics.py
code served (permissive licence) · get_code("a9fc9719da0dea43")
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 0, dtype family float, shape () 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 small tensors for predicted and ground truth images
# Using distinct dimensions: batch=2, channels=3, height=4, width=5
image_pred = torch.randn(2, 3, 4, 5)
image_gt = torch.randn(2, 3, 4, 5)

# Create a valid mask with same spatial dimensions
valid_mask = torch.ones(2, 3, 4, 5, dtype=torch.bool)
valid_mask[0, 0, 0, 0] = False  # Mark one pixel as invalid

ARGS = {
    'image_pred': image_pred,
    'image_gt': image_gt,
    'valid_mask': valid_mask,
    'reduction': 'mean'
}
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 0, dtype family float, shape () — shape () 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_cameras_binary Ran
ran; our contract draft was wrong, not the code
kwea123/ngp_pl/datasets/colmap_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from Advanced-Vision-and-Learning-Lab/sparse-view-3dgs-pack, is pointer only (licence: NONE) · get_code("3d7e294ff8567d46")
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 Advanced-Vision-and-Learning-Lab/sparse-view-3dgs-pack, and GitHub detected no licence in that repository when it was checked. 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.

read_cameras_text Ran
ran; our contract draft was wrong, not the code
kwea123/ngp_pl/datasets/colmap_utils.py
code served (permissive licence) · get_code("8a38e306ff4c5b42")
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 dict. 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 collections
import numpy as np
import tempfile
import os

Camera = collections.namedtuple('Camera', ['id', 'model', 'width', 'height', 'params'])

# Create a temporary file with valid camera data in the expected format
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.txt')
temp_path = temp_file.name

# Write sample camera data
# Format: camera_id model width height params...
temp_file.write("# Camera list\n")
temp_file.write("1 SIMPLE_PINHOLE 640 480 320.5 240.5 500.0\n")
temp_file.write("2 PINHOLE 800 600 400.0 300.0 600.0 0.1\n")
temp_file.close()

ARGS = {
    'path': temp_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
read_image Ran
ran on a synthesized input
kwea123/ngp_pl/datasets/color_utils.py
code served (permissive licence) · get_code("ceaf232bde4b9414")
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 (768, 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
from einops import rearrange
import imageio
import numpy as np
import tempfile
import os

# Create a temporary PNG image file with alpha channel
temp_dir = tempfile.mkdtemp()
temp_img_path = os.path.join(temp_dir, "test_image.png")

# Create a simple RGBA image (4 channels)
img_array = np.random.randint(0, 256, (64, 48, 4), dtype=np.uint8)
imageio.imwrite(temp_img_path, img_array)

# Define arguments
ARGS = {
    "img_path": temp_img_path,
    "img_wh": (32, 24),
    "blend_a": True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cv2, einops, imageio, 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 (768, 3) — shape (768, 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
read_next_bytes Ran
ran, honoured the contract we drafted
kwea123/ngp_pl/datasets/colmap_utils.py
code served (permissive licence) · get_code("56858e04e6fdb2ff")
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 struct
import io

# Create a binary file-like object with test data
# We'll pack some values and then read them back
test_data = struct.pack('<hfi', 42, 3.14, 100)
fid = io.BytesIO(test_data)

ARGS = {
    'fid': fid,
    'num_bytes': 10,  # 2 bytes (h) + 4 bytes (f) + 4 bytes (i) = 10 bytes
    'format_char_sequence': 'hfi',
    'endian_character': '<'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
none outside the standard library — 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
slim_ckpt Ran
ran on a synthesized input
kwea123/ngp_pl/utils.py
code served (permissive licence) · get_code("e25e7be07be74fbd")
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 dict. 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 tempfile
import os

torch.manual_seed(0)

# Create a minimal checkpoint file
temp_dir = tempfile.mkdtemp()
ckpt_path = os.path.join(temp_dir, "test_ckpt.pt")

# Build a minimal state_dict with the keys the function expects
state_dict = {
    'directions': torch.randn(2, 4),
    'model.density_grid': torch.randn(3, 3),
    'model.grid_coords': torch.randn(4, 4),
    'poses': torch.randn(2, 4, 4),
    'val_lpips_layer1': torch.randn(2, 4),
    'val_lpips_layer2': torch.randn(3, 5),
    'weights': torch.randn(2, 4),
    'bias': torch.randn(4),
}

checkpoint = {'state_dict': state_dict}

# Save the checkpoint
torch.save(checkpoint, ckpt_path)

ARGS = {
    'ckpt_path': ckpt_path,
    'save_poses': False,
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
srgb_to_linear Ran
ran on a synthesized input
kwea123/ngp_pl/datasets/color_utils.py
code served (permissive licence) · get_code("6774863ebce3d3f4")
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 (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 numpy as np

# srgb_to_linear takes an image array and applies sRGB to linear color space conversion
# The function uses numpy operations: np.where for conditional logic
# It expects img to be a numpy array (or array-like)

# Create a small test image with sRGB values in the valid range [0, 1]
test_img = np.array([
    [0.01, 0.05, 0.1, 0.5],
    [0.8, 0.95, 1.0, 0.03]
], dtype=np.float32)

ARGS = {
    "img": test_img
}
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 (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

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 4 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 3 the same month, 3 later) and 6 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
read_next_bytes 70 other papers
7 dated earlier, 1 the same month, 62 later
1804.00650 (2018-04)
DeepMVS: Learning Multi-view Stereopsis
1902.10556 (2019-02)
Recurrent MVSNet for High-resolution Multi-view Stereo Depth Inference
1912.06378 (2019-12)
Cascade Cost Volume for High-Resolution Multi-View Stereo and Stereo Matching
and 67 more not named here
read_cameras_text 37 other papers
6 dated earlier, 1 the same month, 30 later
1902.10556 (2019-02)
Recurrent MVSNet for High-resolution Multi-view Stereo Depth Inference
1912.06378 (2019-12)
Cascade Cost Volume for High-Resolution Multi-View Stereo and Stereo Matching
1912.11744 (2019-12)
Planar Prior Assisted PatchMatch Multi-View Stereo
and 34 more not named here
read_cameras_binary 21 other papers
6 dated earlier, 1 the same month, 14 later
1902.10556 (2019-02)
Recurrent MVSNet for High-resolution Multi-view Stereo Depth Inference
1912.06378 (2019-12)
Cascade Cost Volume for High-Resolution Multi-View Stereo and Stereo Matching
1912.11744 (2019-12)
Planar Prior Assisted PatchMatch Multi-View Stereo
and 18 more not named here
mse 5 other papers
5 dated earlier
2008.02268 (2020-08)
NeRF in the Wild: Neural Radiance Fields for Unconstrained Photo Collections
2106.13228 (2021-06)
HyperNeRF: A Higher-Dimensional Representation for Topologically Varying Neural Radiance Fields
2112.01523 (2021-12)
Learning Neural Light Fields with Ray-Space Embedding Networks
and 2 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-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

Emerging neural radiance fields (NeRF) are a promising scene representation for computer graphics, enabling high-quality 3D reconstruction and novel view synthesis from image observations. However, editing a scene represented by a NeRF is challenging, as the underlying connectionist representations such as MLPs or voxel grids are not object-centric or compositional. In particular, it has been difficult to selectively edit specific regions or objects. In this work, we tackle the problem of semantic scene decomposition of NeRFs to enable query-based local editing of the represented 3D scenes. We propose to distill the knowledge of off-the-shelf, supervised and self-supervised 2D image feature extractors such as CLIP-LSeg or DINO into a 3D feature field optimized in parallel to the radiance field. Given a user-specified query of various modalities such as text, an image patch, or a point-and-click selection, 3D feature fields semantically decompose 3D space without the need for re-training and enable us to semantically select and edit regions in the radiance field. Our experiments validate that the distilled feature fields can transfer recent progress in 2D vision and language foundation models to 3D scene representations, enabling convincing 3D segmentation and selective editing of emerging neural graphics representations.

For agents

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

get_harvested_code_for_paper("2205.15585")
get_code_for_paper("2205.15585")
have("2205.15585")

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

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

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

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

Connect an agent — have() is free.