SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · Guo_Painting_From_Part_ICCV_2021_paper · ICCV · 2021

Painting from Part

Dongsheng Guo, Haiyong Zheng, Zhaorui Gu, Bing Zheng, Haoru Zhao, Yunhao Cheng, Repainting Concatenate, Norm Conv, C Conv

Open in the Atlas

Code that ran

9 of 11 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 4 have no contract verdict; 4 failures of our instrument; 2 no recorded run), measured 2026-11-24; 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/Guo_Painting_From_Part_ICCV_2021_paper.json · badge: /api/ran/Guo_Painting_From_Part_ICCV_2021_paper.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
zhenglab/partpainting canonical (classifier label)
classifier basis: census
9 ran · 2 no recorded run
FunctionStatusWhere it lives
cal_gradient_penalty Ran
ran on a synthesized input
zhenglab/partpainting/src/model/loss.py
code served (permissive licence) · get_code("b686eeacb8188e73")
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 as nn

torch.manual_seed(0)

# Define a simple discriminator network
class SimpleDiscriminator(nn.Module):
    def __init__(self):
        super(SimpleDiscriminator, self).__init__()
        self.fc = nn.Linear(4, 1)
    
    def forward(self, x):
        return self.fc(x)

# Create discriminator instance
netD = SimpleDiscriminator()

# Create real and fake data tensors (batch_size=2, features=4)
real_data = torch.randn(2, 4)
fake_data = torch.randn(2, 4)

# Set device to CPU
device = torch.device('cpu')

# Define ARGS dictionary with all parameters
ARGS = {
    'netD': netD,
    'real_data': real_data,
    'fake_data': fake_data,
    'device': device,
    'type': 'mixed',
    'constant': 1.0,
    'lambda_gp': 10.0
}
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
calculate_activation_statistics Ran
ran; our contract draft was wrong, not the code
zhenglab/partpainting/scores/fid_score.py
pointer only (licence: MIT); the stored copy get_code serves, from zhenglab/CAML, is pointer only (licence: NONE) · get_code("c7dceb995ab5a16b")
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 zhenglab/CAML, 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.

calculate_frechet_distance Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
zhenglab/partpainting/scores/fid_score.py
pointer only (licence: MIT); the stored copy get_code serves, from zhenglab/CAML, is pointer only (licence: NONE) · get_code("9482518e1985dbc5")
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 zhenglab/CAML, 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.

compare_mae Ran
ran, violated the contract we drafted
zhenglab/partpainting/scores/metrics.py
pointer only (licence: MIT); the stored copy get_code serves, from zhenglab/CAML, is pointer only (licence: NONE) · get_code("54f3d3c0498a8789")
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 zhenglab/CAML, 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_activations Ran
ran; our contract draft was wrong, not the code
zhenglab/partpainting/scores/fid_score.py
pointer only (licence: MIT); the stored copy get_code serves, from zhenglab/CAML, is pointer only (licence: NONE) · get_code("4d4777ba95462434")
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 zhenglab/CAML, 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.

img_resize Ran
ran on a synthesized input
zhenglab/partpainting/scores/metrics.py
code served (permissive licence) · get_code("f51e271b69c79562")
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 ndarray, ndim 3, dtype family int, shape (32, 32, 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 numpy as np
import cv2

# Create a small test image with distinct height and width
# Using shape (50, 40, 3) for RGB image - height=50, width=40
img = np.random.randint(0, 256, size=(50, 40, 3), dtype=np.uint8)

ARGS = {
    "img": img,
    "height": 32,
    "width": 32,
    "centerCrop": True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cv2, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 3, dtype family int, shape (32, 32, 3) — shape (32, 32, 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
reduce_mean Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
zhenglab/partpainting/src/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from zhenglab/CAML, is pointer only (licence: NONE) · get_code("674e14375afad8c0")
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 zhenglab/CAML, 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.

reduce_sum Ran
ran on a synthesized input
zhenglab/partpainting/src/utils.py
code served (permissive licence) · get_code("45bab21a683f3dd7")
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, 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

torch.manual_seed(0)

ARGS = {
    'x': torch.randn(2, 4, 3, 5),
    'axis': [1, 3],
    'keepdim': 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 Tensor, ndim 2, dtype family float, shape (2, 3) — shape (2, 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
same_padding Ran
ran on a synthesized input
zhenglab/partpainting/src/utils.py
code served (permissive licence) · get_code("fd1ff803fc207b8e")
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 4, dtype family float, shape (2, 3, 6, 7) 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 small 4D tensor (batch_size=2, channels=3, height=4, width=5)
images = torch.randn(2, 3, 4, 5)

# Define kernel sizes for height and width
ksizes = [3, 3]

# Define strides for height and width
strides = [1, 1]

# Define dilation rates for height and width
rates = [1, 1]

ARGS = {
    "images": images,
    "ksizes": ksizes,
    "strides": strides,
    "rates": rates,
}
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 4, dtype family float, shape (2, 3, 6, 7) — shape (2, 3, 6, 7) 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
calc_mean_std Not yet run
unverified (harvested, no recorded run)
zhenglab/partpainting/src/model/networks.py
code served (permissive licence) · get_code("acacfc2ba36556eb")
How it ran

no invocation recorded.

load_flist Not yet run
unverified (harvested, no recorded run)
zhenglab/partpainting/scores/metrics.py
code served (permissive licence) · get_code("5dd192593a04ab65")
How it ran

no invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 6 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 5 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
calculate_frechet_distance 74 other papers
19 dated earlier, 51 later, 4 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
calculate_activation_statistics 5 other papers
4 later, 1 same year, order not determinable
2103.15087 (2021-03)
Learning a Sketch Tensor Space for Image Inpainting of Man-made Scenes
2203.00867 (2022-03)
Incremental Transformer Structure Enhanced Image Inpainting with Masking Positional Encoding
2210.05950 (2022-10)
ZITS++: Image Inpainting by Improving the Incremental Transformer on Structural Priors
and 2 more not named here
compare_mae 1 other paper
1 later
2609.14439 (2026-09)
Context-Aware Mutual Learning for Blind Image Inpainting and Beyond
get_activations 1 other paper
1 later
2609.14439 (2026-09)
Context-Aware Mutual Learning for Blind Image Inpainting and Beyond
reduce_mean 1 other paper
1 later
2609.14439 (2026-09)
Context-Aware Mutual Learning for Blind Image Inpainting and Beyond
same_padding 1 other paper
1 same year, order not determinable
2108.11084 (2021-08)
Transformer for Single Image Super-Resolution

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

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

For agents

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

get_harvested_code_for_paper("Guo_Painting_From_Part_ICCV_2021_paper")
get_code_for_paper("Guo_Painting_From_Part_ICCV_2021_paper")
have("Guo_Painting_From_Part_ICCV_2021_paper")

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

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

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

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

Connect an agent — have() is free.