SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2211.07600 · 2022

Latent-NeRF for Shape-Guided Generation of 3D Shapes and Textures

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 (0 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/2211.07600.json · badge: /api/ran/2211.07600.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
eladrich/latent-nerf canonical (classifier label)
classifier basis not recorded on the link
3 ran · 1 no recorded run
FunctionStatusWhere it lives
get_rays Ran
ran on a synthesized input
eladrich/latent-nerf/src/latent_nerf/models/render_utils.py
code served (permissive licence) · get_code("5af424e1c000a455")
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. 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
torch.manual_seed(0)

# Image dimensions
H = 32
W = 48

# Batch size
B = 2

# Camera intrinsics: [fx, fy, cx, cy]
intrinsics = torch.tensor([500.0, 500.0, 16.0, 24.0])

# Camera-to-world transformation matrices [B, 4, 4]
poses = torch.eye(4).unsqueeze(0).expand(B, 4, 4).clone()
poses[1, :3, 3] = torch.tensor([0.1, 0.2, 0.3])

# Number of rays to sample (-1 means all rays)
N = -1

# Error map (optional, set to None for this case)
error_map = None

ARGS = {
    "poses": poses,
    "intrinsics": intrinsics,
    "H": H,
    "W": W,
    "N": N,
    "error_map": error_map,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
packaging, 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
safe_normalize Ran
ran; our contract draft was wrong, not the code
eladrich/latent-nerf/src/latent_nerf/models/render_utils.py
code served (permissive licence) · get_code("1c9cf033d080b2e0")
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)

# The function safe_normalize takes a tensor x and normalizes it
# by dividing by the L2 norm computed along the last dimension
# Parameters:
# - x: a tensor of any shape
# - eps: a small epsilon value for numerical stability (default 1e-20)

# Create a small test tensor with shape (2, 4)
# This gives us a batch of 2 vectors, each of dimension 4
x = torch.randn(2, 4)

# eps uses the default value from the function signature
eps = 1e-20

ARGS = {
    "x": x,
    "eps": eps,
}
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
sample_pdf Ran
ran; our contract draft was wrong, not the code
eladrich/latent-nerf/src/latent_nerf/models/render_utils.py
code served (permissive licence) · get_code("8ed7b9fc7f33d1dd")
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, 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 torch

torch.manual_seed(0)

# Construct arguments for sample_pdf
# The function expects:
# - bins: tensor of bin edges
# - weights: tensor of weights for each bin
# - n_samples: number of samples to draw
# - det: boolean for deterministic sampling

# Create small tensors with distinct dimensions
# bins: shape (batch=2, num_bins=5) - the bin edges
bins = torch.linspace(0, 1, steps=5).unsqueeze(0).expand(2, -1)

# weights: shape (batch=2, num_bins=4) - weights for each bin
# Note: num_bins for weights should be one less than bins since weights are for intervals
weights = torch.rand(2, 4)

# n_samples: number of samples to draw
n_samples = 3

# det: deterministic flag
det = False

ARGS = {
    "bins": bins,
    "weights": weights,
    "n_samples": n_samples,
    "det": det,
}
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, 3) — shape (2, 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
get_encoder Not yet run
unverified (harvested, no recorded run)
eladrich/latent-nerf/src/latent_nerf/models/encoding.py
code served (permissive licence) · get_code("5155231c1649ede5")
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, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 1 the same month, 2 later) and 2 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
sample_pdf 10 other papers
4 dated earlier, 1 the same month, 5 later · 1 only as an assembly brick
2110.00168 (2021-10)
Vision-Only Robot Navigation in a Neural Radiance World
2112.01455 (2021-12)
Zero-Shot Text-Guided Object Generation with Dream Fields
2203.09517 (2022-03)
TensoRF: Tensorial Radiance Fields
and 7 more not named here
safe_normalize 6 other papers
1 dated earlier, 5 later
2209.14988 (2022-09)
DreamFusion: Text-to-3D using 2D Diffusion
2308.08545 (2023-08)
TeCH: Text-guided Reconstruction of Lifelike Clothed Humans
2312.00778 (2023-12)
MorpheuS: Neural Dynamic 360° Surface Reconstruction from Monocular RGB-D Video
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

Text-guided image generation has progressed rapidly in recent years, inspiring major breakthroughs in text-guided shape generation. Recently, it has been shown that using score distillation, one can successfully text-guide a NeRF model to generate a 3D object. We adapt the score distillation to the publicly available, and computationally efficient, Latent Diffusion Models, which apply the entire diffusion process in a compact latent space of a pretrained autoencoder. As NeRFs operate in image space, a naive solution for guiding them with latent score distillation would require encoding to the latent space at each guidance step. Instead, we propose to bring the NeRF to the latent space, resulting in a Latent-NeRF. Analyzing our Latent-NeRF, we show that while Text-to-3D models can generate impressive results, they are inherently unconstrained and may lack the ability to guide or enforce a specific 3D structure. To assist and direct the 3D generation, we propose to guide our Latent-NeRF using a Sketch-Shape: an abstract geometry that defines the coarse structure of the desired object. Then, we present means to integrate such a constraint directly into a Latent-NeRF. This unique combination of text and shape guidance allows for increased control over the generation process. We also show that latent score distillation can be successfully applied directly on 3D meshes. This allows for generating high-quality textures on a given geometry. Our experiments validate the power of our different forms of guidance and the efficiency of using latent rendering. Implementation is available at https://github.com/eladrich/latent-nerf

For agents

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

get_harvested_code_for_paper("2211.07600")
get_code_for_paper("2211.07600")
have("2211.07600")

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

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

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

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

Connect an agent — have() is free.