SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2303.14190 · CVPR · 2023

WildLight: In-the-wild Inverse Rendering with a Flashlight

Hongdong Li, Junxuan Li, Ziang Cheng

arXiv · PDF · Open in the Atlas

Code that ran

10 of 13 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; 0 honoured the contract we drafted, 1 violated it and 1 has no contract verdict; 8 failures of our instrument; 3 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/2303.14190.json · badge: /api/ran/2303.14190.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
za-cheng/wildlight marked official in Papers with Code
Papers with Code archive
10 ran · 3 no recorded run
FunctionStatusWhere it lives
RenderingNetwork Ran
ran on a synthesized input · constructed an object; no result was computed
za-cheng/wildlight/models/physicalshader.py
code served (permissive licence) · get_code("c101cc1029ae2104")
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, RenderingNetwork: 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
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    'd_feature': 8,
    'mode': 'idr',
    'd_in': 3,
    'd_out': 3,
    'd_hidden': 16,
    'n_layers': 2,
    'weight_norm': True,
    'multires_view': 2,
    'squeeze_out': True,
}
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 RenderingNetwork — 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 RenderingNetwork 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
_CC_smith Ran
ran; our contract draft was wrong, not the code
za-cheng/wildlight/models/physicalshader.py
code served (permissive licence) · get_code("84d139e578e2c9d6")
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 torch
from numpy import pi

torch.manual_seed(0)

# The function _CC_smith takes two parameters:
# - hz: a tensor used in arithmetic operations
# - roughness: a tensor used in arithmetic operations
# Both are used with torch operations like **, torch.log, torch.sqrt

# Create small tensors for hz and roughness
hz = torch.randn(2, 4)
roughness = torch.randn(2, 4) + 2.0  # Add offset to avoid log of negative/zero

ARGS = {
    "hz": hz,
    "roughness": roughness,
}
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 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
_GGX_shading Ran
ran; our contract draft was wrong, not the code
za-cheng/wildlight/models/physicalshader.py
code served (permissive licence) · get_code("ba43b3f2481d4847")
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 (4, 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
import torch.nn.functional as F
from numpy import pi

torch.manual_seed(0)

# Create small tensors with distinct dimensions
batch_size = 2
vec_dim = 3
k_lobes = 4

# normal_vecs: (..., 3) normalized vectors
normal_vecs = F.normalize(torch.randn(batch_size, vec_dim), dim=-1)

# incident_vecs: (..., 3) normalized vectors
incident_vecs = F.normalize(torch.randn(batch_size, vec_dim), dim=-1)

# view_vecs: (..., 3) normalized vectors
view_vecs = F.normalize(torch.randn(batch_size, vec_dim), dim=-1)

# roughness: (k_lobes, ..., 1) rms slope
roughness = torch.rand(k_lobes, batch_size, 1)

# r0: (k_lobes, ..., 1) fresnel factor
r0 = torch.rand(k_lobes, batch_size, 1)

ARGS = {
    "normal_vecs": normal_vecs,
    "incident_vecs": incident_vecs,
    "view_vecs": view_vecs,
    "roughness": roughness,
    "r0": r0,
}
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 (4, 2, 1) — shape (4, 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
_GGX_smith Ran
ran; our contract draft was wrong, not the code
za-cheng/wildlight/models/physicalshader.py
code served (permissive licence) · get_code("cae029906e10de30")
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 torch
from numpy import pi

torch.manual_seed(0)

# Construct arguments for _GGX_smith
hz = torch.tensor([[0.5, 0.6, 0.7, 0.8],
                    [0.9, 1.0, 1.1, 1.2]], dtype=torch.float32)
roughness = torch.tensor([[0.3, 0.4, 0.5, 0.6],
                          [0.7, 0.8, 0.9, 1.0]], dtype=torch.float32)
epsilon = 1e-10

ARGS = {
    "hz": hz,
    "roughness": roughness,
    "epsilon": epsilon
}
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 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
_apply_lighting_GGX Ran
ran; our contract draft was wrong, not the code
za-cheng/wildlight/models/physicalshader.py
code served (permissive licence) · get_code("cc6783f5d8fc6e7e")
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. 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.functional as F

torch.manual_seed(0)

# Create small tensors with distinct dimensions
batch_size = 2
spatial_dim = 4
feature_dim = 3
k_lobes = 1

# points: (..., 3)
points = torch.randn(batch_size, spatial_dim, 3)

# normals: (..., 3), normalized vectors from inside to outside
normals = F.normalize(torch.randn(batch_size, spatial_dim, 3), dim=-1)

# view_dirs: (..., 3), from viewpoint to object
view_dirs = F.normalize(torch.randn(batch_size, spatial_dim, 3), dim=-1)

# light_dirs: (..., 3), from light to object
light_dirs = F.normalize(torch.randn(batch_size, spatial_dim, 3), dim=-1)

# irradiance: (..., 3) or (..., 1), nonnegative
irradiance = torch.abs(torch.randn(batch_size, spatial_dim, 3))

# diffuse_albedo: (..., 3) or (..., 1)
diffuse_albedo = torch.abs(torch.randn(batch_size, spatial_dim, 3))

# specular_albedo: ([k_lobes], ..., 3) or ([k_lobes], ..., 1)
specular_albedo = torch.abs(torch.randn(k_lobes, batch_size, spatial_dim, 3))

# roughness: ([k_lobes], ..., 1), rms slope
roughness = torch.abs(torch.randn(k_lobes, batch_size, spatial_dim, 1)) + 0.1

# r0: ([k_lobes], ..., 1), fresnel factor
r0 = torch.abs(torch.randn(k_lobes, batch_size, spatial_dim, 1))

ARGS = {
    "points": points,
    "normals": normals,
    "view_dirs": view_dirs,
    "light_dirs": light_dirs,
    "irradiance": irradiance,
    "diffuse_albedo": diffuse_albedo,
    "specular_albedo": specular_albedo,
    "roughness": roughness,
    "r0": r0,
}
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 — a tuple output has no array shape of its own; none is 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
_apply_shading_burley Ran
ran; our contract draft was wrong, not the code
za-cheng/wildlight/models/physicalshader.py
code served (permissive licence) · get_code("efcbe8be6e3ac595")
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 torch.nn.functional as F

torch.manual_seed(0)

class BRDFConfig:
    def get_float(self, key, default):
        return default
    
    def get(self, key, default):
        return default

# Create minimal tensors with distinct dimensions
batch_size = 2
spatial_dim = 4
color_dim = 3

points = torch.randn(batch_size, spatial_dim, 3)
normals = torch.randn(batch_size, spatial_dim, 3)
view_dirs = torch.randn(batch_size, spatial_dim, 3)
light_dirs = torch.randn(batch_size, spatial_dim, 3)
irradiance = torch.randn(batch_size, spatial_dim, color_dim)

# brdf_params needs to be unpacked into 7 components (subsurface, metallic, specular, clearcoat, roughness, clearcoat_gloss, base_color)
# Total of 1+1+1+1+1+1+3 = 9 dimensions
brdf_params = torch.randn(batch_size, spatial_dim, 9)

brdf_config = BRDFConfig()

ARGS = {
    'points': points,
    'normals': normals,
    'view_dirs': view_dirs,
    'light_dirs': light_dirs,
    'irradiance': irradiance,
    'brdf_params': brdf_params,
    'brdf_config': brdf_config
}
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
_diffuse Ran
ran, violated the contract we drafted
za-cheng/wildlight/models/physicalshader.py
code served (permissive licence) · get_code("9a854d2789db8ef5")
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 (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 numpy as np
from numpy import pi

torch.manual_seed(0)

# The function _diffuse takes three parameters: hz, roughness, and subsurface
# All are used in arithmetic operations, so they should be numeric tensors or scalars
# Looking at the function body:
# - hz is used in exponentiation and division
# - roughness is multiplied and used in exponentiation
# - subsurface is used in multiplication
# These appear to be per-sample or per-pixel values that should broadcast together

hz = torch.tensor([0.5, 0.7, 0.3, 0.9], dtype=torch.float32)
roughness = torch.tensor([0.2, 0.4, 0.6, 0.8], dtype=torch.float32)
subsurface = torch.tensor([0.1, 0.3, 0.5, 0.7], dtype=torch.float32)

ARGS = {
    "hz": hz,
    "roughness": roughness,
    "subsurface": subsurface,
}
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 1, dtype family float, shape (4,) — shape (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
_format_brdf_params Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
za-cheng/wildlight/models/physicalshader.py
code served (permissive licence) · get_code("3d0d17b2d648af91")
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 4, dtype family float, shape (4, 2, 3, 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)

# The function takes a tensor and reshapes it by moving the last dimension to the front
# and optionally adding a new dimension at the end.
# We need to construct a tensor with shape (..., n_lobes) where n_lobes is the last dimension

# Create a tensor with shape (2, 3, 4) where 4 is n_lobes
param = torch.randn(2, 3, 4)

ARGS = {
    "param": param,
    "newdim": True,
}
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 4, dtype family float, shape (4, 2, 3, 1) — shape (4, 2, 3, 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
dot Ran
ran; our contract draft was wrong, not the code
za-cheng/wildlight/models/physicalshader.py
code served (permissive licence) · get_code("b59af2edcf212db0")
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 (2,) 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 with distinct sizes for clarity
tensor1 = torch.randn(2, 4)  # batch=2, dim=4
tensor2 = torch.randn(2, 4)  # batch=2, dim=4

ARGS = {
    "tensor1": tensor1,
    "tensor2": tensor2,
    "dim": -1,
    "keepdim": False,
    "non_negative": False,
    "epsilon": 1e-06
}
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 (2,) — shape (2,) 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
unpack_brdf_params_GGX Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
za-cheng/wildlight/models/physicalshader.py
code served (permissive licence) · get_code("87ddcc15a7a13f2f")
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. 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.functional as F

torch.manual_seed(0)

# Case 1: trichromatic=False, constant_r0=False, n_lobes=2
# brdf_params shape: (..., D) where D = n_lobes * (2 + n_channels) + 3
# n_lobes=2, n_channels=1 (non-trichromatic)
# D = 2 * (2 + 1) + 3 = 2 * 3 + 3 = 9

brdf_params_case1 = torch.randn(2, 4, 9)

ARGS = {
    "brdf_params": brdf_params_case1,
    "n_lobes": 2,
    "trichromatic": False,
    "constant_r0": 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 tuple — a tuple output has no array shape of its own; none is 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
PhysicalRenderingNetwork Not yet run
unverified (harvested, no recorded run)
za-cheng/wildlight/models/physicalshader.py
code served (permissive licence) · get_code("c174d38b3b7873e0")
How it ran

no invocation recorded.

_burley_shading Not yet run
unverified (harvested, no recorded run)
za-cheng/wildlight/models/physicalshader.py
code served (permissive licence) · get_code("72788d58336d65d9")
How it ran

no invocation recorded.

unpack_brdf_params_burley Not yet run
unverified (harvested, no recorded run)
za-cheng/wildlight/models/physicalshader.py
code served (permissive licence) · get_code("de7faceb3c8032c4")
How it ran

no invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 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 13 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.

For agents

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

get_harvested_code_for_paper("2303.14190")
get_code_for_paper("2303.14190")
have("2303.14190")

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

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

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

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

Connect an agent — have() is free.