SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2303.14412 · CVPR · 2023

Freestyle Layout-to-Image Synthesis

Qianru Sun, Wenjun Zhang, Zhiwu Huang, Li Song, Han Xue

arXiv · PDF · Open in the Atlas

Code that ran

3 of 6 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (3 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; 0 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.14412.json · badge: /api/ran/2303.14412.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
essunny310/FreestyleNet community
Papers with Code archive
3 ran · 3 no recorded run
FunctionStatusWhere it lives
CrossAttention Ran
ran on a synthesized input · constructed an object; no result was computed
essunny310/FreestyleNet/ldm/modules/attention_FLIS.py
code served (permissive licence) · get_code("3e38161420ae652c")
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, CrossAttention: 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
from torch import einsum
from einops import rearrange, repeat

torch.manual_seed(0)

# Create the model
model = nn.Module()

# Define ARGS for CrossAttention.__init__
ARGS = {
    'query_dim': 64,
    'context_dim': 64,
    'heads': 8,
    'dim_head': 8,
    'dropout': 0.1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
einops, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type CrossAttention — 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 CrossAttention 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
FeedForward Ran
ran on a synthesized input · constructed an object; no result was computed
essunny310/FreestyleNet/ldm/modules/attention_FLIS.py
code served (permissive licence) · get_code("215d7a46555cb64f")
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, FeedForward: 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
import torch.nn.functional as F
from inspect import isfunction

torch.manual_seed(0)

def exists(val):
    return val is not None

def default(val, d):
    if exists(val):
        return val
    return d() if isfunction(d) else d

class GEGLU(nn.Module):
    def __init__(self, dim_in, dim_out):
        super().__init__()
        self.proj = nn.Linear(dim_in, dim_out * 2)

    def forward(self, x):
        x, gate = self.proj(x).chunk(2, dim=-1)
        return x * F.gelu(gate)

class FeedForward(nn.Module):
    def __init__(self, dim, dim_out=None, mult=4, glu=False, dropout=0.0):
        super().__init__()
        inner_dim = int(dim * mult)
        dim_out = default(dim_out, dim)
        project_in = nn.Sequential(nn.Linear(dim, inner_dim), nn.GELU()) if not glu else GEGLU(dim, inner_dim)
        self.net = nn.Sequential(project_in, nn.Dropout(dropout), nn.Linear(inner_dim, dim_out))

    def forward(self, x):
        return self.net(x)

ARGS = {
    "dim": 8,
    "dim_out": 16,
    "mult": 4,
    "glu": False,
    "dropout": 0.1,
}
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 FeedForward — 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 FeedForward 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
GEGLU Ran
ran on a synthesized input · constructed an object; no result was computed
essunny310/FreestyleNet/ldm/modules/attention_FLIS.py
code served (permissive licence) · get_code("863be378239ccc1f")
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, GEGLU: 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
import torch.nn.functional as F

torch.manual_seed(0)

# Construct arguments for GEGLU
dim_in = 4
dim_out = 3

geglu_instance = nn.Linear(dim_in, dim_out * 2)

ARGS = {
    "dim_in": dim_in,
    "dim_out": dim_out,
}
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 GEGLU — 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 GEGLU 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
BasicTransformerBlock Not yet run
unverified (harvested, no recorded run)
essunny310/FreestyleNet/ldm/modules/attention_FLIS.py
code served (permissive licence) · get_code("099c3f24dbc4c5dc")
How it ran

no invocation recorded.

SpatialTransformer Not yet run
unverified (harvested, no recorded run)
essunny310/FreestyleNet/ldm/modules/attention_FLIS.py
code served (permissive licence) · get_code("ab480420ad7e5aac")
How it ran

no invocation recorded.

checkpoint Not yet run
unverified (harvested, no recorded run)
essunny310/FreestyleNet/ldm/modules/attention_FLIS.py
code served (permissive licence) · get_code("6fe195fcfd10e259")
How it ran

no invocation recorded.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 1 the same month, 3 later) and 3 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
checkpoint
brick of this paper's assembly: helper
51 other papers
9 dated earlier, 1 the same month, 41 later · 29 only as an assembly brick
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2105.05233 (2021-05)
Diffusion Models Beat GANs on Image Synthesis
2110.11291 (2021-10)
Likelihood Training of Schrödinger Bridge using Forward-Backward SDEs Theory
and 48 more not named here
GEGLU
brick of this paper's assembly: helper
21 other papers
3 dated earlier, 18 later · 18 only as an assembly brick
2211.05556 (2022-11)
Generating astronomical spectra from photometry with conditional diffusion models
2301.05225 (2023-01)
Domain Expansion of Image Generators
2302.04304 (2023-02)
Q-Diffusion: Quantizing Diffusion Models
and 18 more not named here
FeedForward
brick of this paper's assembly: model
20 other papers
3 dated earlier, 17 later · 14 only as an assembly brick
2211.05556 (2022-11)
Generating astronomical spectra from photometry with conditional diffusion models
2301.05225 (2023-01)
Domain Expansion of Image Generators
2302.04304 (2023-02)
Q-Diffusion: Quantizing Diffusion Models
and 17 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-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

"train bush grass railroad" "lego train bush grass railroad" "an ink painting of train bush grass railroad" "warehouse bush grass railroad" Layout "bench cat building bush furniture grass ground pavement roof sky tree window" "bench tabby cat building bush furniture grass ground pavement roof sky tree window" "a sketch of bench cat building bush furniture grass ground pavement roof sky tree window" "bench unicorn building bush furniture grass ground pavement roof sky tree window" Figure 1. Freestyle Layout-to-Image Synthesis (FLIS) results generated by using our model. Each has two kinds of inputs: a layout of semantic masks (on the 1st column), and a text (on the top of each result). For each layout, we show three example results with edited texts (3rd-5th columns). They validate that our model is able to introduce new attributes (3rd column), styles (4th column), and objects (5th column), which are all unseen during training, in the synthesized images. The generated hornless unicorn is due to the layout constraint.

For agents

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

get_harvested_code_for_paper("2303.14412")
get_code_for_paper("2303.14412")
have("2303.14412")

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

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

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

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

Connect an agent — have() is free.