SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2207.14811 · ECCV · 2022

StyleLight: HDR Panorama Generation for Lighting Estimation and Editing

Ziwei Liu, Chen Loy, Guangcong Wang, Yinuo Yang

arXiv · PDF · Open in the Atlas

Code that ran

6 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; 5 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 1 failure of our instrument; 4 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/2207.14811.json · badge: /api/ran/2207.14811.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
wanggcong/stylelight marked official in Papers with Code
Papers with Code archive
6 ran · 4 no recorded run
FunctionStatusWhere it lives
_raw_read Ran
ran, honoured the contract we drafted
wanggcong/stylelight/skylibs/envmap/environmentmap.py
code served (permissive licence) · get_code("7e24cfcc2156e4a6")
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 ndarray, ndim 3, dtype family int, shape (100, 100, 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 os
import tempfile
from unittest.mock import Mock, patch

# Create a temporary directory and a mock raw image file
temp_dir = tempfile.mkdtemp()
mock_raw_filename = os.path.join(temp_dir, "test_image.raw")

# Create a dummy raw file
with open(mock_raw_filename, 'w') as f:
    f.write("dummy raw data")

# Mock the subprocess.call and tifffile.imread to avoid actual dcraw execution
# and file I/O complications
def mock_subprocess_call(cmd):
    """Mock subprocess call that simulates successful dcraw execution"""
    return 0

def mock_tiff_imread(filename):
    """Mock tifffile.imread that returns a dummy numpy array"""
    import numpy as np
    return np.zeros((100, 100, 3), dtype=np.uint16)

# Patch the functions before defining ARGS
import subprocess
original_call = subprocess.call
subprocess.call = mock_subprocess_call

try:
    import tifffile
    original_imread = tifffile.imread
    tifffile.imread = mock_tiff_imread
except ImportError:
    pass

ARGS = {
    'filename': mock_raw_filename
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, tifffile — 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 (100, 100, 3) — shape (100, 100, 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
rotation_matrix Ran
ran, honoured the contract we drafted
wanggcong/stylelight/skylibs/envmap/environmentmap.py
code served (permissive licence) · get_code("de42ea8638c91221")
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 ndarray, ndim 2, dtype family float, shape (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 numpy as np

# The rotation_matrix function takes three parameters: azimuth, elevation, and roll
# All are angles in radians (floats)
# The function uses them to compute rotation matrices via rotz, rotx, roty functions

ARGS = {
    'azimuth': 0.5,  # angle in radians, left (negative) to right (positive)
    'elevation': 0.3,  # angle in radians, upward (negative) to downward (positive)
    'roll': 0.1  # angle in radians, counter-clockwise (negative) to clockwise (positive)
}
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 ndarray, ndim 2, dtype family float, shape (3, 3) — shape (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
rotx Ran
ran, honoured the contract we drafted
wanggcong/stylelight/skylibs/envmap/environmentmap.py
code served (permissive licence) · get_code("d0d624fac2c8afb1")
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 ndarray, ndim 2, dtype family float, shape (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 numpy as np

# The rotx function takes a single parameter: theta (angle in radians)
# It performs a counter-clockwise 3D rotation around the X axis
# theta should be a numeric value (int or float)

theta_value = np.pi / 4  # 45 degrees in radians

ARGS = {
    'theta': theta_value
}
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 ndarray, ndim 2, dtype family float, shape (3, 3) — shape (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
roty Ran
ran, honoured the contract we drafted
wanggcong/stylelight/skylibs/envmap/environmentmap.py
code served (permissive licence) · get_code("873a154399e8047b")
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 ndarray, ndim 2, dtype family float, shape (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 numpy as np

# The function roty takes a single parameter: theta (an angle in radians)
# It produces a rotation matrix around the Y axis
# theta should be a numeric value (int or float)

theta_value = np.pi / 4  # 45 degrees in radians

ARGS = {
    "theta": theta_value
}
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 ndarray, ndim 2, dtype family float, shape (3, 3) — shape (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
rotz Ran
ran, honoured the contract we drafted
wanggcong/stylelight/skylibs/envmap/environmentmap.py
code served (permissive licence) · get_code("33cea5758ce0094b")
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 ndarray, ndim 2, dtype family float, shape (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 numpy as np

# The function rotz takes a single parameter 'theta' which should be a numeric value
# representing an angle in radians. The function uses it in np.cos() and np.sin()
# calls, so it needs to be a scalar or array-like numeric type.

theta_value = np.pi / 4  # 45 degrees in radians

ARGS = {
    'theta': theta_value
}
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 ndarray, ndim 2, dtype family float, shape (3, 3) — shape (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
tetrahedronSolidAngle Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
wanggcong/stylelight/skylibs/envmap/environmentmap.py
code served (permissive licence) · get_code("93c39bf7faa62481")
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 ndarray, 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 numpy as np

# Create valid arguments for tetrahedronSolidAngle
# The function expects three 3xN matrices (a, b, c) representing vectors
# and an optional boolean parameter lhuillier

# Create three 3xN matrices where N=2 (batch size)
# Each column represents a 3D vector
a = np.array([
    [1.0, 0.5],
    [0.0, 0.866],
    [0.0, 0.0]
], dtype=np.float64)

b = np.array([
    [0.0, -0.5],
    [1.0, 0.866],
    [0.0, 0.0]
], dtype=np.float64)

c = np.array([
    [0.0, 0.0],
    [0.0, 0.0],
    [1.0, 1.0]
], dtype=np.float64)

ARGS = {
    'a': a,
    'b': b,
    'c': c,
    'lhuillier': True
}
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 ndarray, 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
EnvironmentMap Not yet run
unverified (harvested, no recorded run)
wanggcong/stylelight/skylibs/envmap/environmentmap.py
code served (permissive licence) · get_code("1a54eb84daf44189")
How it ran

no invocation recorded.

EnvmapXMLParser Not yet run
unverified (harvested, no recorded run)
wanggcong/stylelight/skylibs/envmap/environmentmap.py
code served (permissive licence) · get_code("526f5fb9eabad645")
How it ran

no invocation recorded.

_hdr_read Not yet run
unverified (harvested, no recorded run)
wanggcong/stylelight/skylibs/envmap/environmentmap.py
code served (permissive licence) · get_code("b1e6dc011427ca3d")
How it ran

no invocation recorded.

imread Not yet run
unverified (harvested, no recorded run)
wanggcong/stylelight/skylibs/envmap/environmentmap.py
code served (permissive licence) · get_code("1a1ba9960f98fa25")
How it ran

no invocation recorded.

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, 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 10 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.

Abstract

Fig. 1. StyleLight. The proposed StyleLight estimates HDR panorama lighting from an LDR LFOV image and performs lighting addition and removal.

For agents

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

get_harvested_code_for_paper("2207.14811")
get_code_for_paper("2207.14811")
have("2207.14811")

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

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

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

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

Connect an agent — have() is free.