SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2011.12799 · 2020

StyleSpace Analysis: Disentangled Controls for StyleGAN Image Generation

arXiv · PDF · Open in the Atlas

Code that ran

5 of 5 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, 1 violated it and 0 have no contract verdict; 4 failures of our instrument; 0 no recorded run), measured 2026-11-21; 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/2011.12799.json · badge: /api/ran/2011.12799.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
futscdav/Chunkmogrify extension (classifier label)
classifier basis: classifier_2025
4 ran · 0 no recorded run
copy not recorded community
not in the paper's declared repositories
1 ran · 0 no recorded run
FunctionStatusWhere it lives
dilation Ran
ran; our contract draft was wrong, not the code
futscdav/Chunkmogrify/stylegan_project.py
code served (permissive licence) · get_code("4e8fa838f90c5eae")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned Tensor, ndim 4, dtype family float, shape (2, 1, 6, 8) 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 4D tensor (batch, channels, height, width)
tensor = torch.randn(2, 1, 6, 8)

# Create a 2D kernel
kernel = torch.ones(3, 5)

# Optional structuring element (same shape as kernel)
structuring_element = torch.randn(3, 5)

# Origin coordinates [row, col]
origin = [1, 2]

# Border type
border_type = 'geodesic'

# Border value
border_value = 0.0

# Max value
max_val = 10000.0

ARGS = {
    'tensor': tensor,
    'kernel': kernel,
    'structuring_element': structuring_element,
    'origin': origin,
    'border_type': border_type,
    'border_value': border_value,
    'max_val': max_val
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
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 (2, 1, 6, 8) — shape (2, 1, 6, 8) 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
fused_leaky_relu Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
futscdav/Chunkmogrify/styleclip_mapper.py
code served (permissive licence) · get_code("61bfd1f9c061215b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned Tensor, ndim 4, dtype family float, shape (2, 3, 4, 5) 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 expects:
# - input: a tensor (either 3D or not 3D, let's test with 4D which is common for conv layers)
# - bias: a tensor with fewer dimensions than input
# - negative_slope: float (default 0.2)
# - scale: float (default 2**0.5)

# For a 4D input (batch, channels, height, width), bias typically has shape (channels,)
# The function does: bias.view(1, bias.shape[0], *rest_dim)
# where rest_dim = [1] * (input.ndim - bias.ndim - 1)

# Let's create a 4D input case:
# input: (2, 3, 4, 5) - batch=2, channels=3, height=4, width=5
# bias: (3,) - one bias per channel

input_4d = torch.randn(2, 3, 4, 5)
bias_4d = torch.randn(3)

ARGS = {
    'input': input_4d,
    'bias': bias_4d,
    'negative_slope': 0.2,
    'scale': 2 ** 0.5
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
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 (2, 3, 4, 5) — shape (2, 3, 4, 5) 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_keys Ran
ran; our contract draft was wrong, not the code
futscdav/Chunkmogrify/styleclip_mapper.py
code served (permissive licence) · get_code("29b9a890f149a3a6")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned dict. 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)

# Create a state dict that mimics a checkpoint with nested module names
# The function extracts keys that start with a specific name prefix
state_dict = {
    'encoder.layer1.weight': torch.randn(4, 3),
    'encoder.layer1.bias': torch.randn(4),
    'encoder.layer2.weight': torch.randn(5, 4),
    'encoder.layer2.bias': torch.randn(5),
    'decoder.layer1.weight': torch.randn(3, 5),
    'decoder.layer1.bias': torch.randn(3),
    'other.param': torch.randn(2, 2)
}

# Wrap it in a checkpoint-like dict (function checks for 'state_dict' key)
d = {'state_dict': state_dict, 'epoch': 10, 'optimizer': {}}

# Name to filter by
name = 'encoder'

ARGS = {
    'd': d,
    'name': name
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
is_w Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
futscdav/Chunkmogrify/stylegan_project.py
code served (permissive licence) · get_code("10f7b20ffb250b39")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned Tensor, ndim 0, dtype family float, shape () 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 checks if x has 3 dimensions and if x.shape[1] == 1 OR if all columns equal the first column
# Let's create a tensor with shape (batch=2, seq_len=3, dim=4)
# We'll make it so all columns are equal to the first column to satisfy the condition

x = torch.randn(2, 3, 4)
# Make all columns equal to the first column
x[:, :, :] = x[:, 0:1, :]

ARGS = {"x": x}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
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 0, dtype family float, shape () — shape () 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
make_kernel Ran
ran, violated the contract we drafted
this paper's copy was not recorded; identical code first harvested from dkn16/multi-fidel-gan-21cm
pointer only; the stored copy get_code serves, from dkn16/multi-fidel-gan-21cm, is pointer only (licence: NOASSERTION) · get_code("6f65e378a4313f87")
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.

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 3 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 3 later) and 2 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
make_kernel 40 other papers
4 dated earlier, 36 later · 10 only as an assembly brick
1812.04948 (2018-12)
A Style-Based Generator Architecture for Generative Adversarial Networks
1912.04958 (2019-12)
Analyzing and Improving the Image Quality of StyleGAN
2007.06600 (2020-07)
Closed-Form Factorization of Latent Semantics in GANs
and 37 more not named here
get_keys 14 other papers
1 dated earlier, 13 later
2008.00951 (2020-08)
Encoding in Style: a StyleGAN Encoder for Image-to-Image Translation
2103.17249 (2021-03)
StyleCLIP: Text-Driven Manipulation of StyleGAN Imagery
2112.05142 (2021-12)
HairCLIP: Design Your Hair by Text and Reference Image
and 11 more not named here
fused_leaky_relu 4 other papers
4 later · 2 only as an assembly brick
2103.17249 (2021-03)
StyleCLIP: Text-Driven Manipulation of StyleGAN Imagery
2104.06820 (2021-04)
Few-shot Image Generation via Cross-domain Correspondence
2107.06256 (2021-07)
Retrieve in Style: Unsupervised Facial Feature Transfer and Retrieval
and 1 more not named here

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

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 explore and analyze the latent style space of StyleGAN2, a state-of-the-art architecture for image generation, using models pretrained on several different datasets. We first show that StyleSpace, the space of channel-wise style parameters, is significantly more disentangled than the other intermediate latent spaces explored by previous works. Next, we describe a method for discovering a large collection of style channels, each of which is shown to control a distinct visual attribute in a highly localized and disentangled manner. Third, we propose a simple method for identifying style channels that control a specific attribute, using a pretrained classifier or a small number of example images. Manipulation of visual attributes via these StyleSpace controls is shown to be better disentangled than via those proposed in previous works. To show this, we make use of a newly proposed Attribute Dependency metric. Finally, we demonstrate the applicability of StyleSpace controls to the manipulation of real images. Our findings pave the way to semantically meaningful and well-disentangled image manipulations via simple and intuitive interfaces.

For agents

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

get_harvested_code_for_paper("2011.12799")
get_code_for_paper("2011.12799")
have("2011.12799")

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

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

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

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

Connect an agent — have() is free.