SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2407.14257 · 2024

SparseCraft: Few-Shot Neural Reconstruction through Stereopsis Guided Geometric Linearization

arXiv · PDF · Open in the Atlas

Code that ran

7 of 11 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; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 5 failures of our instrument; 4 no recorded run), measured 2026-11-24; 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/2407.14257.json · badge: /api/ran/2407.14257.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
maeyounes/SparseCraft canonical (classifier label)
classifier basis: census
7 ran · 4 no recorded run
FunctionStatusWhere it lives
cast_rays Ran
ran, honoured the contract we drafted
maeyounes/SparseCraft/models/ray_utils.py
code served (permissive licence) · get_code("45090c68bfc689c0")
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 3, dtype family float, shape (2, 4, 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
import numpy as np

torch.manual_seed(0)

# Analyze the function:
# cast_rays(ori, dir, z_vals)
# ori[..., None, :] - ori is indexed with ellipsis, None, and slice, so it's a tensor
# z_vals[..., None] - z_vals is indexed with ellipsis and None, so it's a tensor
# dir[..., None, :] - dir is indexed with ellipsis, None, and slice, so it's a tensor
# The operation: ori[..., None, :] + z_vals[..., None] * dir[..., None, :]
# This performs broadcasting of ray origins, directions, and depth values

# Let's construct tensors that will work with this broadcasting:
# ori: shape (..., 3) - ray origins in 3D space, batch size 2
# dir: shape (..., 3) - ray directions in 3D space, batch size 2  
# z_vals: shape (..., depth_samples) - depth sample values, batch size 2 with 4 depth samples

# Using distinct sizes: batch=2, spatial_dim=3, depth_samples=4
ori = torch.randn(2, 3)  # 2 rays, 3D coordinates
dir = torch.randn(2, 3)  # 2 ray directions, 3D vectors
z_vals = torch.randn(2, 4)  # 2 rays, 4 depth samples per ray

ARGS = {
    "ori": ori,
    "dir": dir,
    "z_vals": z_vals,
}
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 Tensor, ndim 3, dtype family float, shape (2, 4, 3) — shape (2, 4, 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
create_spheric_poses Ran
ran; our contract draft was wrong, not the code
maeyounes/SparseCraft/datasets/colmap.py
code served (permissive licence) · get_code("a2f27fa1611db49e")
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 3, dtype family float, shape (120, 3, 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 math

torch.manual_seed(0)

# cameras is used as:
# - cameras.dtype and cameras.device (accessed)
# - cameras - center[None, :] (subtraction with broadcasting)
# - .norm(p=2, dim=-1).mean() (norm and mean operations)
# - cameras[:, 2].mean() (indexing and mean)
# So cameras should be a 2D tensor of shape (batch, 3) with camera positions

cameras = torch.randn(4, 3, dtype=torch.float32)

n_steps = 120

ARGS = {
    "cameras": cameras,
    "n_steps": n_steps,
}
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 3, dtype family float, shape (120, 3, 4) — shape (120, 3, 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
dot Ran
ran; our contract draft was wrong, not the code
maeyounes/SparseCraft/models/utils.py
code served (permissive licence) · get_code("456eeade4275ae9d")
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, 1) 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 two small tensors for the dot product computation
# x and y should have compatible shapes for element-wise multiplication
# The function sums over the last dimension (-1)
x = torch.randn(2, 4)  # batch_size=2, dim=4
y = torch.randn(2, 4)  # batch_size=2, dim=4

ARGS = {
    "x": x,
    "y": y,
}
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, 1) — shape (2, 1) 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_activation Ran
ran; our contract draft was wrong, not the code
maeyounes/SparseCraft/models/utils.py
code served (permissive licence) · get_code("7ebbd9cc3224e16f")
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 function. 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.functional as F
from torch.autograd import Function
from torch.cuda.amp import custom_bwd, custom_fwd

torch.manual_seed(0)

class _TruncExp(Function):
    @staticmethod
    @custom_fwd(cast_inputs=torch.float32)
    def forward(ctx, x):
        ctx.save_for_backward(x)
        return torch.exp(x)

    @staticmethod
    @custom_bwd
    def backward(ctx, g):
        x = ctx.saved_tensors[0]
        return g * torch.exp(torch.clamp(x, max=15))

trunc_exp = _TruncExp.apply

def get_activation(name):
    if name is None:
        return lambda x: x
    name = name.lower()
    if name == 'none':
        return lambda x: x
    elif name == 'dropout':
        return lambda x: torch.nn.functional.dropout(x, p=0.1)
    elif name == 'exp':
        return lambda x: torch.exp(x)
    elif name == 'softplus':
        return lambda x: torch.nn.functional.softplus(x)
    elif name.startswith('scale'):
        scale_factor = float(name[5:])
        return lambda x: x.clamp(0.0, scale_factor) / scale_factor
    elif name.startswith('clamp'):
        clamp_max = float(name[5:])
        return lambda x: x.clamp(0.0, clamp_max)
    elif name.startswith('mul'):
        mul_factor = float(name[3:])
        return lambda x: x * mul_factor
    elif name == 'lin2srgb':
        return lambda x: torch.where(x > 0.0031308, torch.pow(torch.clamp(x, min=0.0031308), 1.0 / 2.4) * 1.055 - 0.055, 12.92 * x).clamp(0.0, 1.0)
    elif name == 'trunc_exp':
        return trunc_exp
    elif name.startswith('+') or name.startswith('-'):
        return lambda x: x + float(name)
    elif name == 'sigmoid':
        return lambda x: torch.sigmoid(x)
    elif name == 'widened-sigmoid':
        epsilon = 0.1
        return lambda x: (1 + 2 * epsilon) / (1 + torch.exp(-x)) - epsilon
    elif name == 'tanh':
        return lambda x: torch.tanh(x)
    else:
        return getattr(F, name)

ARGS = {
    'name': 'sigmoid'
}
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 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_center Ran
ran; our contract draft was wrong, not the code
maeyounes/SparseCraft/datasets/colmap.py
code served (permissive licence) · get_code("3845b5efb9d80fcc")
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 1, dtype family float, shape (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)

# Create a small tensor of 3D points (batch=6, dim=3)
# The function computes center, distances, statistics, and filters by outliers
pts = torch.randn(6, 3)

ARGS = {
    "pts": pts
}
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 1, dtype family float, shape (3,) — shape (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_ray_directions Ran
ran, honoured the contract we drafted
maeyounes/SparseCraft/models/ray_utils.py
code served (permissive licence) · get_code("4dd0fa230b9e8f1d")
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 3, dtype family float, shape (3, 4, 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
import numpy as np

torch.manual_seed(0)

# The function takes camera intrinsics and image dimensions
# and generates ray directions for a pinhole camera model

W = 4  # image width
H = 3  # image height
fx = 500.0  # focal length x
fy = 500.0  # focal length y
cx = 2.0  # principal point x
cy = 1.5  # principal point y
use_pixel_centers = True

ARGS = {
    "W": W,
    "H": H,
    "fx": fx,
    "fy": fy,
    "cx": cx,
    "cy": cy,
    "use_pixel_centers": use_pixel_centers
}
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 Tensor, ndim 3, dtype family float, shape (3, 4, 3) — shape (3, 4, 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_K_Rt_from_P Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
maeyounes/SparseCraft/datasets/sparsecraft_utils.py
code served (permissive licence) · get_code("aedca8b114d0c45b")
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 3, 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
import cv2

# Create a valid 3x4 projection matrix P
# A projection matrix is typically formed as P = K[R|t]
# We'll construct a simple one

# Create a simple 3x3 intrinsic matrix K
K = np.array([
    [500, 0, 320],
    [0, 500, 240],
    [0, 0, 1]
], dtype=np.float32)

# Create a simple 3x3 rotation matrix (identity for simplicity)
R = np.eye(3, dtype=np.float32)

# Create a simple translation vector
t = np.array([[0], [0], [5]], dtype=np.float32)

# Construct the projection matrix P = K[R|t]
P = K @ np.hstack([R, t])

# P should be 3x4
P = P.astype(np.float32)

ARGS = {
    "P": P
}
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 tuple, ndim 3, 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
chunk_batch Not yet run
unverified (harvested, no recorded run)
maeyounes/SparseCraft/models/utils.py
code served (permissive licence) · get_code("3cde7958baaeae2e")
How it ran

no invocation recorded.

get_rays Not yet run
unverified (harvested, no recorded run)
maeyounes/SparseCraft/models/ray_utils.py
code served (permissive licence) · get_code("2172b8a161d5fd31")
How it ran

no invocation recorded.

normalize_poses Not yet run
unverified (harvested, no recorded run)
maeyounes/SparseCraft/datasets/colmap.py
code served (permissive licence) · get_code("6e375a7f581eefb6")
How it ran

no invocation recorded.

ply_to_point_cloud Not yet run
unverified (harvested, no recorded run)
maeyounes/SparseCraft/datasets/sparsecraft_utils.py
code served (permissive licence) · get_code("22f39ca26dd35897")
How it ran

no invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 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, 1 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
dot 9 other papers
8 dated earlier, 1 later
2302.14859 (2023-02)
BakedSDF: Meshing Neural SDFs for Real-Time View Synthesis
2308.07391 (2023-08)
PARIS: Part-level Reconstruction and Motion Analysis for Articulated Objects
2311.17082 (2023-11)
DreamPropeller: Supercharge Text-to-3D Generation with Parallel Sampling
and 6 more not named here
cast_rays 4 other papers
4 dated earlier
2302.14859 (2023-02)
BakedSDF: Meshing Neural SDFs for Real-Time View Synthesis
2308.07391 (2023-08)
PARIS: Part-level Reconstruction and Motion Analysis for Articulated Objects
2312.09527 (2023-12)
TIFace: Improving Facial Reconstruction through Tensorial Radiance Fields and Implicit Surfaces
and 1 more not named here
chunk_batch 3 other papers
3 dated earlier
2302.14859 (2023-02)
BakedSDF: Meshing Neural SDFs for Real-Time View Synthesis
2312.09527 (2023-12)
TIFace: Improving Facial Reconstruction through Tensorial Radiance Fields and Implicit Surfaces
2403.06738 (2024-03)
V3D: Video Diffusion Models are Effective 3D Generators
get_ray_directions 2 other papers
2 dated earlier
2302.14859 (2023-02)
BakedSDF: Meshing Neural SDFs for Real-Time View Synthesis
2312.09527 (2023-12)
TIFace: Improving Facial Reconstruction through Tensorial Radiance Fields and Implicit Surfaces
get_rays 2 other papers
2 dated earlier
2302.14859 (2023-02)
BakedSDF: Meshing Neural SDFs for Real-Time View Synthesis
2312.09527 (2023-12)
TIFace: Improving Facial Reconstruction through Tensorial Radiance Fields and Implicit Surfaces

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-24.

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 a novel approach for recovering 3D shape and view dependent appearance from a few colored images, enabling efficient 3D reconstruction and novel view synthesis. Our method learns an implicit neural representation in the form of a Signed Distance Function (SDF) and a radiance field. The model is trained progressively through ray marching enabled volumetric rendering, and regularized with learning-free multi-view stereo (MVS) cues. Key to our contribution is a novel implicit neural shape function learning strategy that encourages our SDF field to be as linear as possible near the level-set, hence robustifying the training against noise emanating from the supervision and regularization signals. Without using any pretrained priors, our method, called SparseCraft, achieves state-of-the-art performances both in novel-view synthesis and reconstruction from sparse views in standard benchmarks, while requiring less than 10 minutes for training.

For agents

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

get_harvested_code_for_paper("2407.14257")
get_code_for_paper("2407.14257")
have("2407.14257")

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

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

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

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

Connect an agent — have() is free.