SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2107.11298 · ICCV · 2021

SurfaceNet: Adversarial SVBRDF Estimation from a Single Image

Concetto Spampinato, Simone Palazzo, Giuseppe Vecchio

arXiv · PDF · Open in the Atlas

Code that ran

6 of 9 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, 0 violated it and 3 have no contract verdict; 3 failures of our instrument; 3 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/2107.11298.json · badge: /api/ran/2107.11298.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
perceivelab/trf-sg2im community
Papers with Code archive
3 ran · 1 no recorded run
perceivelab/surfacenet marked official in Papers with Code
Papers with Code archive
2 ran · 2 no recorded run
copy not recorded community
not in the paper's declared repositories
1 ran · 0 no recorded run
FunctionStatusWhere it lives
AttnBlock Ran
ran on a synthesized input
perceivelab/trf-sg2im/modules/blocks.py
pointer only (licence: GPL-3.0) · get_code("bf6e2d1e65621c97")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, perceivelab/trf-sg2im, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Downsample Ran
ran on a synthesized input · constructed an object; no result was computed
perceivelab/trf-sg2im/modules/blocks.py
pointer only (licence: GPL-3.0) · get_code("f86ae8958e076367")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, perceivelab/trf-sg2im, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Normalize Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from Xingyu-Zheng/BiDM
pointer only; the stored copy get_code serves, from Xingyu-Zheng/BiDM, is pointer only (licence: NONE) · get_code("c3a6b977022957cb")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

ResnetBlock Ran
ran on a synthesized input
perceivelab/trf-sg2im/modules/blocks.py
pointer only (licence: GPL-3.0) · get_code("8068f643577ada75")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, perceivelab/trf-sg2im, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

same_conv Ran
ran; our contract draft was wrong, not the code
perceivelab/surfacenet/src/models/surfacenet.py
code served (permissive licence) · get_code("661ee75aefc27196")
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 Sequential. 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
from torchvision.models.resnet import BasicBlock as ResidualBlock

torch.manual_seed(0)

ARGS = {
    "in_channels": 256,
    "out_channels": 256,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 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
upsample_conv Ran
ran; our contract draft was wrong, not the code
perceivelab/surfacenet/src/models/surfacenet.py
code served (permissive licence) · get_code("3501b7ff778104a7")
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 Sequential. 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
from torchvision.models.resnet import BasicBlock as ResidualBlock

torch.manual_seed(0)

ARGS = {
    'in_channels': 256,
    'out_channels': 256,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 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
Backbone Not yet run
unverified (harvested, no recorded run)
perceivelab/surfacenet/src/models/surfacenet.py
code served (permissive licence) · get_code("bc26e219d8b4ebf5")
How it ran

no invocation recorded.

Encoder Not yet run
unverified (harvested, no recorded run)
perceivelab/trf-sg2im/modules/blocks.py
pointer only (licence: GPL-3.0) · get_code("4c7b6a07a20a1a21")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, perceivelab/trf-sg2im, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

SurfaceNet Not yet run
unverified (harvested, no recorded run)
perceivelab/surfacenet/src/models/surfacenet.py
code served (permissive licence) · get_code("4810b1ed702de7c5")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 5 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 5 later) and 4 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
Normalize
brick of this paper's assembly: helper
90 other papers
3 dated earlier, 87 later · 32 only as an assembly brick
2104.07652 (2021-04)
Geometry-Free View Synthesis: Transformers and no 3D Priors
2106.00132 (2021-06)
On Fast Sampling of Diffusion Probabilistic Models
2106.06819 (2021-06)
D2C: Diffusion-Denoising Models for Few-shot Conditional Generation
and 87 more not named here
AttnBlock
brick of this paper's assembly: model
14 other papers
14 later · 9 only as an assembly brick
2205.07460 (2022-05)
Diffusion Models for Adversarial Purification
2210.00471 (2022-10)
OCD: Learning to Overfit with Conditional Diffusion Models
2302.04304 (2023-02)
Q-Diffusion: Quantizing Diffusion Models
and 11 more not named here
Downsample
brick of this paper's assembly: model
13 other papers
13 later · 12 only as an assembly brick
2205.07460 (2022-05)
Diffusion Models for Adversarial Purification
2210.00471 (2022-10)
OCD: Learning to Overfit with Conditional Diffusion Models
2303.05762 (2023-03)
TrojDiff: Trojan Attacks on Diffusion Models with Diverse Targets
and 10 more not named here
ResnetBlock
brick of this paper's assembly: model
7 other papers
7 later · 4 only as an assembly brick
2307.08996 (2023-07)
Towards Authentic Face Restoration with Iterative Diffusion Models and Beyond
2310.03502 (2023-10)
Kandinsky: an Improved Text-to-Image Synthesis with Image Prior and Latent Diffusion
2403.07874 (2024-03)
Beyond Text: Frozen Large Language Models in Visual Signal Comprehension
and 4 more not named here
Encoder
brick of this paper's assembly: entry
3 other papers
3 later · 2 only as an assembly brick
2310.03502 (2023-10)
Kandinsky: an Improved Text-to-Image Synthesis with Image Prior and Latent Diffusion
2403.07874 (2024-03)
Beyond Text: Frozen Large Language Models in Visual Signal Comprehension
2505.17685 (2025-05)
FutureSightDrive: Thinking Visually with Spatio-Temporal CoT for Autonomous Driving

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

In this paper we present SurfaceNet, an approach for estimating spatially-varying bidirectional reflectance distribution function (SVBRDF) material properties from a single image. We pose the problem as an image translation task and propose a novel patch-based generative adversarial network (GAN) that is able to produce high-quality, high-resolution surface reflectance maps. The employment of the GAN paradigm has a twofold objective: 1) allowing the model to recover finer details than standard translation models; 2) reducing the domain shift between synthetic and real data distributions in an unsupervised way. An extensive evaluation, carried out on a public benchmark of synthetic and real images under different illumination conditions, shows that SurfaceNet largely outperforms existing SVBRDF reconstruction methods, both quantitatively and qualitatively. Furthermore, SurfaceNet exhibits a remarkable ability in generating high-quality maps from real samples without any supervision at training time. Source code available at https://github.com/ perceivelab/surfacenet.

For agents

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

get_harvested_code_for_paper("2107.11298")
get_code_for_paper("2107.11298")
have("2107.11298")

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

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

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

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

Connect an agent — have() is free.