SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2303.15269 · CVPR · 2023

Handwritten Text Generation from Visual Archetypes

Rita Cucchiara, Silvia Cascianelli, Vittorio Pippi

arXiv · PDF · Open in the Atlas

Code that ran

21 of 28 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (10 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 12 have no contract verdict; 8 failures of our instrument; 7 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.15269.json · badge: /api/ran/2303.15269.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
aimagelab/VATr community
Papers with Code archive
14 ran · 6 no recorded run
hnam-1765/writevit community (classifier label)
classifier basis not recorded on the link
7 ran · 1 no recorded run
FunctionStatusWhere it lives
Conv2dBlock Ran
ran on a synthesized input · constructed an object; no result was computed
aimagelab/VATr/models/model.py
code served (permissive licence) · get_code("f0b7cc93962197b3")
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, Conv2dBlock: 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
from torch import nn

torch.manual_seed(0)

ARGS = {
    'in_dim': 3,
    'out_dim': 16,
    'ks': 3,
    'st': 1,
    'padding': 1,
    'norm': 'in',
    'activation': 'relu',
    'pad_type': 'zero',
    'use_bias': True,
    'activation_first': False
}
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 Conv2dBlock — 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 Conv2dBlock 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
D_arch Ran
ran on a synthesized input
hnam-1765/writevit/models/BigGAN_networks.py
code served (permissive licence) · get_code("d5e0c4c475f7d0ea")
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 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 numpy as np

torch.manual_seed(0)

ARGS = {
    'ch': 64,
    'attention': '64',
    'input_nc': 3,
    'ksize': '333333',
    'dilation': '111111'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, 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
FCNDecoder Ran
ran on a synthesized input · constructed an object; no result was computed
aimagelab/VATr/models/model.py
code served (permissive licence) · get_code("0ce0d022419871d3")
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, FCNDecoder: 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
from torch import nn

torch.manual_seed(0)

# FCNDecoder takes the following parameters:
# ups=3, n_res=2, dim=512, out_dim=1, res_norm='adain', activ='relu', pad_type='reflect'

ARGS = {
    'ups': 3,
    'n_res': 2,
    'dim': 512,
    'out_dim': 1,
    'res_norm': 'adain',
    'activ': 'relu',
    'pad_type': 'reflect'
}
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 FCNDecoder — 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 FCNDecoder 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
FIDInceptionA Ran
ran on a synthesized input · constructed an object; no result was computed
aimagelab/VATr/models/model.py
code served (permissive licence) · get_code("2648187d673104a6")
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, FIDInceptionA: 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 torchvision.models as models
import torch.nn.functional as F

torch.manual_seed(0)

class FIDInceptionA(models.inception.InceptionA):
    """InceptionA block patched for FID computation"""

    def __init__(self, in_channels, pool_features):
        super(FIDInceptionA, self).__init__(in_channels, pool_features)

    def forward(self, x):
        branch1x1 = self.branch1x1(x)
        branch5x5 = self.branch5x5_1(x)
        branch5x5 = self.branch5x5_2(branch5x5)
        branch3x3dbl = self.branch3x3dbl_1(x)
        branch3x3dbl = self.branch3x3dbl_2(branch3x3dbl)
        branch3x3dbl = self.branch3x3dbl_3(branch3x3dbl)
        branch_pool = F.avg_pool2d(x, kernel_size=3, stride=1, padding=1, count_include_pad=False)
        branch_pool = self.branch_pool(branch_pool)
        outputs = [branch1x1, branch5x5, branch3x3dbl, branch_pool]
        return torch.cat(outputs, 1)

ARGS = {
    "in_channels": 192,
    "pool_features": 32
}
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 FIDInceptionA — 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 FIDInceptionA 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
FIDInceptionC Ran
ran on a synthesized input · constructed an object; no result was computed
aimagelab/VATr/models/model.py
code served (permissive licence) · get_code("643d4a526326f581")
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, FIDInceptionC: 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 torchvision.models as models

torch.manual_seed(0)

# Create a minimal FIDInceptionC instance
# The parent class InceptionC expects in_channels and channels_7x7 parameters
in_channels = 768
channels_7x7 = 128

ARGS = {
    "in_channels": in_channels,
    "channels_7x7": channels_7x7,
}
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 FIDInceptionC — 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 FIDInceptionC 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
FIDInceptionE_1 Ran
ran on a synthesized input · constructed an object; no result was computed
aimagelab/VATr/models/model.py
code served (permissive licence) · get_code("db29adb344f73366")
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, FIDInceptionE_1: 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 torchvision.models as models
import torch.nn.functional as F

torch.manual_seed(0)

# The FIDInceptionE_1 class expects in_channels as a parameter
# Looking at the forward method, it uses:
# - self.branch1x1(x)
# - self.branch3x3_1(x), self.branch3x3_2a, self.branch3x3_2b
# - self.branch3x3dbl_1(x), self.branch3x3dbl_2, self.branch3x3dbl_3a, self.branch3x3dbl_3b
# - self.branch_pool(branch_pool)
# These are all inherited from models.inception.InceptionE

# We need to provide in_channels (int)
# Standard InceptionE takes in_channels as first param

in_channels_value = 768  # Typical value for InceptionE in the Inception network

ARGS = {
    "in_channels": in_channels_value
}
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 FIDInceptionE_1 — 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 FIDInceptionE_1 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
FIDInceptionE_2 Ran
ran on a synthesized input · constructed an object; no result was computed
aimagelab/VATr/models/model.py
code served (permissive licence) · get_code("cd5dedb4fdac4f23")
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, FIDInceptionE_2: 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 torchvision.models as models

torch.manual_seed(0)

# Build a minimal InceptionE block to use as parent
# We need to construct the submodules that FIDInceptionE_2.forward() actually uses

class MinimalInceptionE(nn.Module):
    def __init__(self, in_channels):
        super(MinimalInceptionE, self).__init__()
        # branch1x1
        self.branch1x1 = nn.Conv2d(in_channels, 8, kernel_size=1)
        
        # branch3x3
        self.branch3x3_1 = nn.Conv2d(in_channels, 8, kernel_size=1)
        self.branch3x3_2a = nn.Conv2d(8, 6, kernel_size=3, padding=1)
        self.branch3x3_2b = nn.Conv2d(8, 6, kernel_size=3, padding=1)
        
        # branch3x3dbl
        self.branch3x3dbl_1 = nn.Conv2d(in_channels, 8, kernel_size=1)
        self.branch3x3dbl_2 = nn.Conv2d(8, 8, kernel_size=3, padding=1)
        self.branch3x3dbl_3a = nn.Conv2d(8, 4, kernel_size=3, padding=1)
        self.branch3x3dbl_3b = nn.Conv2d(8, 4, kernel_size=3, padding=1)
        
        # branch_pool
        self.branch_pool = nn.Conv2d(in_channels, 5, kernel_size=1)

class FIDInceptionE_2(MinimalInceptionE):
    """Second InceptionE block patched for FID computation"""

    def __init__(self, in_channels):
        super(FIDInceptionE_2, self).__init__(in_channels)

    def forward(self, x):
        branch1x1 = self.branch1x1(x)
        branch3x3 = self.branch3x3_1(x)
        branch3x3 = [self.branch3x3_2a(branch3x3), self.branch3x3_2b(branch3x3)]
        branch3x3 = torch.cat(branch3x3, 1)
        branch3x3dbl = self.branch3x3dbl_1(x)
        branch3x3dbl = self.branch3x3dbl_2(branch3x3dbl)
        branch3x3dbl = [self.branch3x3dbl_3a(branch3x3dbl), self.branch3x3dbl_3b(branch3x3dbl)]
        branch3x3dbl = torch.cat(branch3x3dbl, 1)
        branch_pool = torch.nn.functional.max_pool2d(x, kernel_size=3, stride=1, padding=1)
        branch_pool = self.branch_pool(branch_pool)
        outputs = [branch1x1, branch3x3, branch3x3dbl, branch_pool]
        return torch.cat(outputs, 1)

ARGS = {
    'in_channels': 16
}
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 FIDInceptionE_2 — 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 FIDInceptionE_2 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
G_arch Ran
ran on a synthesized input
hnam-1765/writevit/models/BigGAN_networks.py
code served (permissive licence) · get_code("eeee154bc306d46b")
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 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 numpy as np

torch.manual_seed(0)

ARGS = {
    'ch': 64,
    'attention': '64_128_256',
    'ksize': '333333',
    'dilation': '111111',
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, 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
PositionalEncoding1D Ran
ran on a synthesized input · constructed an object; no result was computed
aimagelab/VATr/models/model.py
code served (permissive licence) · get_code("9e410fe607bac90c")
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, PositionalEncoding1D: 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
from torch import nn
import numpy as np

torch.manual_seed(0)

# The PositionalEncoding1D.__init__ takes one parameter: channels
# channels should be an integer representing the last dimension

ARGS = {
    'channels': 8
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type PositionalEncoding1D — 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 PositionalEncoding1D 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
ResBlock Ran
ran on a synthesized input · constructed an object; no result was computed
aimagelab/VATr/models/model.py
code served (permissive licence) · get_code("22c73a1beb759d7d")
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, ResBlock: 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
from torch import nn

torch.manual_seed(0)

# ResBlock takes: dim, norm, activation, pad_type
# dim: integer for feature dimension
# norm: string for normalization type
# activation: string for activation type
# pad_type: string for padding type

ARGS = {
    'dim': 64,
    'norm': 'in',
    'activation': 'relu',
    'pad_type': 'zero'
}
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 ResBlock — 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 ResBlock 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
ResBlocks Ran
ran on a synthesized input · constructed an object; no result was computed
aimagelab/VATr/models/model.py
code served (permissive licence) · get_code("4dbb6df05fa94399")
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, ResBlocks: 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
from torch import nn

torch.manual_seed(0)

ARGS = {
    'num_blocks': 2,
    'dim': 4,
    'norm': 'in',
    'activation': 'relu',
    'pad_type': 'zero'
}
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 ResBlocks — 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 ResBlocks 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
UnifontModule Ran
ran on a synthesized input · constructed an object; no result was computed
aimagelab/VATr/models/model.py
code served (permissive licence) · get_code("367b22529423f3f6")
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, UnifontModule: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 numpy as np
import pickle
import tempfile
import os

torch.manual_seed(0)

# Create temporary directory and mock pickle files
temp_dir = tempfile.mkdtemp()
os.makedirs(os.path.join(temp_dir, 'files'), exist_ok=True)

# Create mock unifont.pickle
unifont_data = []
for i, char in enumerate('abc'):
    unifont_data.append({
        'idx': (ord(char),),
        'mat': np.random.randn(8, 8).astype(np.float32)
    })
with open(os.path.join(temp_dir, 'files', 'unifont.pickle'), 'wb') as f:
    pickle.dump(unifont_data, f)

# Create mock custom_input.pickle (same structure)
custom_data = []
for i, char in enumerate('abc'):
    custom_data.append({
        'idx': (ord(char),),
        'mat': np.random.randn(4, 5).astype(np.float32)
    })
with open(os.path.join(temp_dir, 'files', 'custom_input.pickle'), 'wb') as f:
    pickle.dump(custom_data, f)

# Change to temp directory so pickle files can be found
original_dir = os.getcwd()
os.chdir(temp_dir)

# Define arguments
ARGS = {
    'out_dim': 16,
    'alphabet': 'abc',
    'device': 'cpu',
    'input_type': 'custom_input',
    'linear': True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type UnifontModule — 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 UnifontModule 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
calculate_frechet_distance Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
hnam-1765/writevit/models/inception.py
pointer only (licence: MIT); the stored copy get_code serves, from shpda/text-to-image-gen-model-acgan, is pointer only (licence: NONE) · get_code("4cee7c1861294d59")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from shpda/text-to-image-gen-model-acgan, and GitHub detected no licence in that repository when it was checked. 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.

conv3x3 Ran
ran; our contract draft was wrong, not the code
hnam-1765/writevit/models/backbone.py
pointer only (licence: MIT); the stored copy get_code serves, from amerch/CIFAR100-Training, is pointer only (licence: NONE) · get_code("583f9780bdd00a45")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from amerch/CIFAR100-Training, and GitHub detected no licence in that repository when it was checked. 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.

get_emb Ran
ran, honoured the contract we drafted
aimagelab/VATr/models/model.py
code served (permissive licence) · get_code("33805df68cb6892e")
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 Tensor, ndim 2, dtype family float, shape (2, 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)

# The function expects sin_inp to be a tensor that has .sin() and .cos() methods
# It will stack the results and flatten them
sin_inp = torch.randn(2, 4)

ARGS = {
    "sin_inp": sin_inp
}
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 Tensor, ndim 2, dtype family float, shape (2, 8) — shape (2, 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
get_scheduler Ran
ran; our contract draft was wrong, not the code
hnam-1765/writevit/models/networks.py
pointer only (licence: MIT); the stored copy get_code serves, from sak-h/pytorch-Denoising-Diffusion-Probabilistic-Models, is pointer only (licence: NONE) · get_code("62a8cdfdb51ec275")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from sak-h/pytorch-Denoising-Diffusion-Probabilistic-Models, and GitHub detected no licence in that repository when it was checked. 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.

gram_schmidt Ran
ran; our contract draft was wrong, not the code
hnam-1765/writevit/models/BigGAN_layers.py
pointer only (licence: MIT); the stored copy get_code serves, from mshahbazi72/cGANTransfer, is pointer only (licence: NONE) · get_code("c41836f3e51fa8f1")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from mshahbazi72/cGANTransfer, and GitHub detected no licence in that repository when it was checked. 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.

loss_hinge_dis Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
aimagelab/VATr/models/model.py
code served (permissive licence) · get_code("d5932c9e19a8f551")
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 tuple, ndim 1, 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.functional as F

torch.manual_seed(0)

# Construct tensors for dis_fake and dis_real
# The function expects these to have shape that may be > 2D
# Shape: (batch_size, channels, height, width) = (2, 3, 4, 5)
dis_real = torch.randn(2, 3, 4, 5)
dis_fake = torch.randn(2, 3, 4, 5)

# len_text_fake: lengths of fake sequences for masking
# Should have length equal to batch size (2)
len_text_fake = [3, 2]

# len_text: lengths of real sequences for masking
# Should have length equal to batch size (2)
len_text = [4, 3]

# mask_loss: boolean flag to enable/disable masking
mask_loss = True

ARGS = {
    "dis_fake": dis_fake,
    "dis_real": dis_real,
    "len_text_fake": len_text_fake,
    "len_text": len_text,
    "mask_loss": mask_loss,
}
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 tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
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
loss_hinge_gen Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
aimagelab/VATr/models/model.py
code served (permissive licence) · get_code("20ede13d7691fddd")
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 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)

# Construct arguments for loss_hinge_gen
# dis_fake: a tensor of discriminator output for fake samples
# len_text_fake: a list of text lengths for each sample in the batch
# mask_loss: a boolean flag to apply masking

dis_fake = torch.randn(2, 3, 4, 5)  # batch=2, 3 channels, spatial 4x5

len_text_fake = [3, 2]  # lengths for 2 samples in batch

mask_loss = True  # enable masking based on text lengths

ARGS = {
    'dis_fake': dis_fake,
    'len_text_fake': len_text_fake,
    'mask_loss': mask_loss
}
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 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_one_hot Ran
ran; our contract draft was wrong, not the code
aimagelab/VATr/models/model.py
code served (permissive licence) · get_code("39075c27b258d2c3")
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 Tensor, ndim 3, dtype family float, shape (2, 4, 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 torch
import numpy as np

torch.manual_seed(0)

# Analyze function usage:
# - labels: indexed with [i, :len_labels[i]], needs shape (batch_size, max_seq_len)
#   values are 1-indexed class indices (subtract 1 in function)
# - len_labels: indexed with range(len(labels)), needs shape (batch_size,)
#   contains sequence lengths for each batch item
# - n_classes: scalar, used to create output shape

batch_size = 2
max_seq_len = 4
n_classes = 3

# Create labels tensor with 1-indexed class values
# Shape: (2, 4) - batch of 2, max sequence length 4
labels = torch.tensor([
    [1, 2, 1, 0],  # first batch: classes 1, 2, 1 (padded with 0)
    [3, 1, 0, 0]   # second batch: classes 3, 1 (padded with 0)
], dtype=torch.long)

# Create len_labels array with actual sequence lengths for each batch item
# Shape: (2,) - length of sequences for each batch
len_labels = np.array([3, 2], dtype=np.int64)

# n_classes is a scalar
n_classes = 3

ARGS = {
    "labels": labels,
    "len_labels": len_labels,
    "n_classes": n_classes
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
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, shape (2, 4, 3) — shape (2, 4, 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
power_iteration Ran
ran; our contract draft was wrong, not the code
hnam-1765/writevit/models/BigGAN_layers.py
code served (permissive licence) · get_code("28d3a35157f2916d")
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 tuple. 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.functional as F

torch.manual_seed(0)

# Construct valid arguments for power_iteration
# W: weight matrix that will be multiplied with u and v vectors
# Shape should allow matmul operations: (4, 3) so u (1, 4) @ W (4, 3) = (1, 3)
W = torch.randn(4, 3)

# u_: list of initial vectors
# Each should be a 1D tensor with size matching W's first dimension
u_ = [
    torch.randn(1, 4),
    torch.randn(1, 4),
]

# update: boolean flag
update = True

# eps: small epsilon for numerical stability
eps = 1e-12

ARGS = {
    "W": W,
    "u_": u_,
    "update": update,
    "eps": eps,
}
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 tuple — a tuple output has no array shape of its own; none is 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
AdaptiveInstanceNorm2d Not yet run
unverified (harvested, no recorded run)
aimagelab/VATr/models/model.py
code served (permissive licence) · get_code("5db4f1182b19d9c5")
How it ran

no invocation recorded.

Generator Not yet run
unverified (harvested, no recorded run)
aimagelab/VATr/models/model.py
code served (permissive licence) · get_code("1ff1bc3eaf943f05")
How it ran

no invocation recorded.

InceptionV3 Not yet run
unverified (harvested, no recorded run)
aimagelab/VATr/models/model.py
code served (permissive licence) · get_code("e66d36581525af67")
How it ran

no invocation recorded.

VATr Not yet run
unverified (harvested, no recorded run)
aimagelab/VATr/models/model.py
code served (permissive licence) · get_code("818355b6821b8174")
How it ran

no invocation recorded.

fid_inception_v3 Not yet run
unverified (harvested, no recorded run)
aimagelab/VATr/models/model.py
code served (permissive licence) · get_code("99c0f27938d0a636")
How it ran

no invocation recorded.

proj Not yet run
unverified (harvested, no recorded run)
hnam-1765/writevit/models/BigGAN_layers.py
pointer only (licence: MIT); the stored copy get_code serves, from mshahbazi72/cGANTransfer, is pointer only (licence: NONE) · get_code("4015ab1f3ab9b881")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from mshahbazi72/cGANTransfer, and GitHub detected no licence in that repository when it was checked. 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.

toggle_grad Not yet run
unverified (harvested, no recorded run)
aimagelab/VATr/models/model.py
code served (permissive licence) · get_code("c31ec2e6a64fbcac")
How it ran

no invocation recorded.

Also present in other papers' code

Of 28 samples lifted from this paper's linked repositories, 28 carry a function identity and 0 do not. Of the 28 distinct functions with an identity, 9 are also present in other papers whose code we hold (9 with at least one paper dated earlier, 2 the same month, 7 later) and 19 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
conv3x3 686 other papers
459 dated earlier, 10 the same month, 210 later, 7 same year, order not determinable · 31 only as an assembly brick
1406.2661 (2014-06)
Generative Adversarial Networks
1409.0575 (2014-09)
ImageNet Large Scale Visual Recognition Challenge
1412.6572 (2014-12)
Explaining and Harnessing Adversarial Examples
and 683 more not named here
calculate_frechet_distance 74 other papers
33 dated earlier, 1 the same month, 39 later, 1 same year, order not determinable
1610.09585 (2016-10)
Conditional Image Synthesis With Auxiliary Classifier GANs
1706.08500 (2017-06)
GANs Trained by a Two Time-Scale Update Rule Converge to a Local Nash Equilibrium
1807.11458 (2018-07)
To learn image super-resolution, use a GAN to learn how to do image degradation first
and 71 more not named here
gram_schmidt 28 other papers
22 dated earlier, 5 later, 1 same year, order not determinable · 5 only as an assembly brick
1809.11096 (2018-09)
Large Scale GAN Training for High Fidelity Natural Image Synthesis
1811.10597 (2018-11)
GAN Dissection: Visualizing and Understanding Generative Adversarial Networks
1910.05852 (2019-10)
Implicit competitive regularization in GANs
and 25 more not named here
proj 28 other papers
22 dated earlier, 5 later, 1 same year, order not determinable · 5 only as an assembly brick
1809.11096 (2018-09)
Large Scale GAN Training for High Fidelity Natural Image Synthesis
1811.10597 (2018-11)
GAN Dissection: Visualizing and Understanding Generative Adversarial Networks
1910.05852 (2019-10)
Implicit competitive regularization in GANs
and 25 more not named here
power_iteration 25 other papers
20 dated earlier, 4 later, 1 same year, order not determinable · 5 only as an assembly brick
1809.11096 (2018-09)
Large Scale GAN Training for High Fidelity Natural Image Synthesis
1811.10597 (2018-11)
GAN Dissection: Visualizing and Understanding Generative Adversarial Networks
1910.05852 (2019-10)
Implicit competitive regularization in GANs
and 22 more not named here
get_emb
brick of this paper's assembly: helper
11 other papers
2 dated earlier, 9 later · 2 only as an assembly brick
1706.03762 (2017-06)
Attention Is All You Need
2211.13220 (2022-11)
TetraDiffusion: Tetrahedral Diffusion Models for 3D Shape Generation
2310.20030 (2023-10)
Scaling Riemannian Diffusion Models
and 8 more not named here
get_scheduler 11 other papers
10 dated earlier, 1 later
1406.2661 (2014-06)
Generative Adversarial Networks
1611.07004 (2016-11)
Image-to-Image Translation with Conditional Adversarial Networks
1907.04312 (2019-07)
Positional Normalization
and 8 more not named here
G_arch 1 other paper
1 dated earlier
2003.10557 (2020-03)
ScrabbleGAN: Semi-Supervised Varying Length Handwritten Text Generation
ResBlocks
brick of this paper's assembly: model
1 other paper
1 dated earlier
2002.04114 (2020-02)
Cross-Modality Paired-Images Generation for RGB-Infrared Person Re-Identification

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

Generating synthetic images of handwritten text in a writer-specific style is a challenging task, especially in the case of unseen styles and new words, and even more when these latter contain characters that are rarely encountered during training. While emulating a writer's style has been recently addressed by generative models, the generalization towards rare characters has been disregarded. In this work, we devise a Transformer-based model for Few-Shot styled handwritten text generation and focus on obtaining a robust and informative representation of both the text and the style. In particular, we propose a novel representation of the textual content as a sequence of dense vectors obtained from images of symbols written as standard GNU Unifont glyphs, which can be considered their visual archetypes. This strategy is more suitable for generating characters that, despite having been seen rarely during training, possibly share visual details with the frequently observed ones. As for the style, we obtain a robust representation of unseen writers' calligraphy by exploiting specific pre-training on a large synthetic dataset. Quantitative and qualitative results demonstrate the effectiveness of our proposal in generating words in unseen styles and with rare characters more faithfully than existing approaches relying on independent one-hot encodings of the characters.

For agents

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

get_harvested_code_for_paper("2303.15269")
get_code_for_paper("2303.15269")
have("2303.15269")

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

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

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

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

Connect an agent — have() is free.