SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2204.06837 · CVPR · 2022

Modeling Indirect Illumination for Inverse Rendering

Xingyi He, Jiaming Sun, Xiaowei Zhou, Rongfei Jia, Huan Fu, Yuanqing Zhang

arXiv · PDF · Open in the Atlas

Code that ran

1 of 1 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; 0 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/2204.06837.json · badge: /api/ran/2204.06837.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
zju3dv/invrender community
Papers with Code archive
1 ran · 0 no recorded run
FunctionStatusWhere it lives
IndirctIllumNetwork Ran
ran on a synthesized input
zju3dv/invrender/code/model/implicit_differentiable_renderer.py
code served (permissive licence) · get_code("8900366d3b417589")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, 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
import torch.nn as nn
import numpy as np

# Minimal embedder function for positional encoding
def get_embedder(multires):
    """Simple positional encoding embedder."""
    embed_fns = []
    d = 3
    freq_bands = torch.linspace(0., multires - 1., steps=multires)
    
    for freq in freq_bands:
        embed_fns.append(lambda x, freq=freq: torch.sin((2. ** freq) * np.pi * x))
        embed_fns.append(lambda x, freq=freq: torch.cos((2. ** freq) * np.pi * x))
    
    def embedder(x):
        return torch.cat([fn(x) for fn in embed_fns], dim=-1)
    
    out_dim = d * multires * 2
    return embedder, out_dim

class IndirctIllumNetwork(nn.Module):

    def __init__(self, multires=0, dims=[128, 128, 128, 128], num_lgt_sgs=24):
        super().__init__()
        input_dim = 3
        self.embed_fn = None
        if multires > 0:
            self.embed_fn, input_dim = get_embedder(multires)
        self.num_lgt_sgs = num_lgt_sgs
        self.actv_fn = nn.ReLU()
        print('indirect illumination SG network size: ', dims)
        lobe_layer = []
        dim = input_dim
        for i in range(len(dims)):
            lobe_layer.append(nn.Linear(dim, dims[i]))
            lobe_layer.append(self.actv_fn)
            dim = dims[i]
        lobe_layer.append(nn.Linear(dim, self.num_lgt_sgs * 6))
        self.lobe_layer = nn.Sequential(*lobe_layer)

    def forward(self, points):
        if self.embed_fn is not None:
            points = self.embed_fn(points)
        batch_size = points.shape[0]
        output = self.lobe_layer(points).reshape(batch_size, self.num_lgt_sgs, 6)
        lgt_lobes = torch.sigmoid(output[..., :2])
        theta, phi = (lgt_lobes[..., :1] * 2 * np.pi, lgt_lobes[..., 1:2] * 2 * np.pi)
        lgt_lobes = torch.cat([torch.cos(theta) * torch.sin(phi), torch.sin(theta) * torch.sin(phi), torch.cos(phi)], dim=-1)
        lambda_mu = output[..., 2:]
        lambda_mu[..., :1] = torch.sigmoid(lambda_mu[..., :1]) * 30 + 0.1
        lambda_mu[..., 1:] = self.actv_fn(lambda_mu[..., 1:])
        lgt_sgs = torch.cat([lgt_lobes, lambda_mu], axis=-1)
        return lgt_sgs

INIT_ARGS = {
    'multires': 0,
    'dims': [64, 64],
    'num_lgt_sgs': 8,
}

ARGS = {
    'points': torch.randn(2, 3),
}

if __name__ == '__main__':
    model = IndirctIllumNetwork(**INIT_ARGS)
    output = model(**ARGS)
    print(f"Output shape: {output.shape}")
    print(f"Expected shape: (2, 8, 6)")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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 — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)

Also present in other papers' code

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

Recent advances in implicit neural representations and differentiable rendering make it possible to simultaneously recover the geometry and materials of an object from multiview RGB images captured under unknown static illumination. Despite the promising results achieved, indirect illumination is rarely modeled in previous methods, as it requires expensive recursive path tracing which makes the inverse rendering computationally intractable. In this paper, we propose a novel approach to efficiently recovering spatially-varying indirect illumination. The key insight is that indirect illumination can be conveniently derived from the neural radiance field learned from input images instead of being estimated jointly with direct illumination and materials. By properly modeling the indirect illumination and visibility of direct illumination, interreflection-and shadowfree albedo can be recovered. The experiments on both synthetic and real data demonstrate the superior performance of our approach compared to previous work and its capability to synthesize realistic renderings under novel viewpoints and illumination. Our code and data are available at https://zju3dv.github.io/invrender/.

For agents

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

get_harvested_code_for_paper("2204.06837")
get_code_for_paper("2204.06837")
have("2204.06837")

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

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

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

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

Connect an agent — have() is free.