SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1804.07723 · 2018

Image Inpainting for Irregular Holes Using Partial Convolutions

arXiv · PDF · Open in the Atlas

Code that ran

29 of 31 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; 3 honoured the contract we drafted, 1 violated it and 15 have no contract verdict; 10 failures of our instrument; 2 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/1804.07723.json · badge: /api/ran/1804.07723.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
naoto0804/pytorch-inpainting-with-partial-conv community (classifier label)
classifier basis not recorded on the link
6 ran · 0 no recorded run
cameltr/transref community (classifier label)
classifier basis not recorded on the link
5 ran · 0 no recorded run
yashk2000/SneakySketchers community (classifier label)
classifier basis not recorded on the link
4 ran · 0 no recorded run
cameltr/rgtsi community (classifier label)
classifier basis not recorded on the link
3 ran · 1 no recorded run
SeitaroShinagawa/chainer-partial_convolution_image_inpainting reimplementation (classifier label)
classifier basis: classifier_2025
3 ran · 0 no recorded run
TrinhQuocNguyen/Edited_PConv-Keras community (classifier label)
classifier basis not recorded on the link
3 ran · 0 no recorded run
King-HAW/CT_inpainting community (classifier label)
classifier basis not recorded on the link
2 ran · 1 no recorded run
bobqywei/inpainting-partial-conv reimplementation (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
copy not recorded community
not in the paper's declared repositories
1 ran · 0 no recorded run
devansh20la/Image_inpainting reimplementation (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
FunctionStatusWhere it lives
DOE_downsample_block Ran
ran on a synthesized input
cameltr/transref/models/RefPA/Model_utils.py
code served (permissive licence) · get_code("d329ea45f095b88a")
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

torch.manual_seed(0)

ARGS = {
    "input_channelsize": 3
}
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 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
array_to_img Ran
ran, honoured the contract we drafted
SeitaroShinagawa/chainer-partial_convolution_image_inpainting/generate_windows.py
code served (permissive licence) · get_code("c63bfabb83547f08")
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) and returned Image. 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 numpy as np
from PIL import Image

# Create a small numpy array with values that need clipping
# Using a 4x3 array with some values outside [0, 255] range
im = np.array([
    [-10, 128, 256, 300],
    [0, 100, 200, 255],
    [50, 150, 250, 260]
], dtype=np.float32)

ARGS = {
    "im": im
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
PIL, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Image — a Image output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Image output the recorded ndim 2 and dtype family int 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
clip Ran
ran, honoured the contract we drafted
SeitaroShinagawa/chainer-partial_convolution_image_inpainting/generate_windows.py
code served (permissive licence) · get_code("126fbb3bbd63ad67")
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) and returned int, ndim 0, dtype family int, 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)

ARGS = {
    "a": 128
}
Setup block drafted by
a language model, Claude Haiku 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 int, ndim 0, dtype family int, 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
conf_to_param Ran
ran on a synthesized input
yashk2000/SneakySketchers/inpainting/utilities.py
code served (permissive licence) · get_code("5159f16354d4577b")
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

# Construct a valid config dict for conf_to_param
config = {
    "learning_rate": 0.001,
    "batch_size": 32,
    "epochs": 10,
    "use_dropout": True,
    "model_name": "resnet50",
    "optimizer_config": {
        "momentum": 0.9,
        "weight_decay": 1e-4
    },
    "scheduler_config": {
        "step_size": 5,
        "gamma": 0.1
    }
}

ARGS = {
    "config": config
}
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 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
count_nonblack_np Ran
ran on a synthesized input
TrinhQuocNguyen/Edited_PConv-Keras/libs/util.py
code served (permissive licence) · get_code("e02610738bfdc267")
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 float64, ndim 0, 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 numpy as np

# Create a small test image as a numpy array
# Shape: (height, width, channels)
# The function uses:
# - img.any(axis=-1) to check if any color channel is nonzero
# - .sum() to count nonblack pixels
# - img.shape[0] and img.shape[1] for height and width

# Create a 4x3 image with 3 color channels
img = np.array([
    [[255, 0, 0], [0, 0, 0], [128, 128, 128]],
    [[0, 255, 0], [0, 0, 0], [64, 64, 64]],
    [[0, 0, 255], [100, 100, 100], [0, 0, 0]],
    [[50, 50, 50], [0, 0, 0], [200, 100, 50]]
], dtype=np.uint8)

ARGS = {
    "img": img
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
dialation_holes Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
yashk2000/SneakySketchers/inpainting/loss.py
code served (permissive licence) · get_code("5e14b9034e5790ba")
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, 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
import torch.nn as nn

torch.manual_seed(0)

# Create a small hole_mask tensor
# Shape: (batch=2, channels=3, height=4, width=5)
hole_mask = torch.randint(0, 2, (2, 3, 4, 5)).float()

ARGS = {
    "hole_mask": hole_mask
}
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, 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
equal_lr Ran
ran; our contract draft was wrong, not the code
cameltr/transref/models/base_networks.py
code served (permissive licence) · get_code("5ef2eff36d9c9c0e")
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 SimpleModule. 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 math import sqrt

torch.manual_seed(0)

# Create a simple module with a weight parameter
# The function accesses module._parameters[name] and uses getattr/setattr
# It also calls weight.data.size(1) and weight.data[0][0].numel()
# So weight needs to be at least 2D, and weight[0][0] needs to have numel()

class SimpleModule(nn.Module):
    def __init__(self):
        super().__init__()
        # Create a weight parameter with shape (out_features, in_features)
        # For a Conv2d-like weight, it would be (out_channels, in_channels, kernel_h, kernel_w)
        # Let's use a 4D weight to match typical conv layers: (2, 3, 2, 2)
        # This way: size(1) = 3 (in_channels), and [0][0] is a 2x2 tensor with numel() = 4
        self.weight = nn.Parameter(torch.randn(2, 3, 2, 2))
    
    def forward(self, x):
        return x

module = SimpleModule()

ARGS = {
    'module': module,
    'name': 'weight'
}
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 SimpleModule — a SimpleModule output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a SimpleModule 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
exceeds_bounds Ran
ran, violated the contract we drafted
bobqywei/inpainting-partial-conv/inpaint.py
pointer only (licence: NONE) · get_code("66b365b2efae78bf")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, bobqywei/inpainting-partial-conv 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_norm_layer Ran
ran on a synthesized input
cameltr/rgtsi/models/networks.py
code served (permissive licence) · get_code("5daad5c7af1b1741")
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 partial. 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 functools

torch.manual_seed(0)

ARGS = {
    'norm_type': 'instance'
}
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 partial — a partial output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a partial 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
get_scheduler Ran
ran; our contract draft was wrong, not the code
cameltr/rgtsi/models/networks.py
code served (permissive licence) · get_code("d2575c24d11029c0")
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 LambdaLR. 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.optim import Adam

torch.manual_seed(0)

class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

class OptConfig:
    def __init__(self, lr_policy='lambda', epoch_count=0, niter=100, niter_decay=50, lr_decay_iters=10):
        self.lr_policy = lr_policy
        self.epoch_count = epoch_count
        self.niter = niter
        self.niter_decay = niter_decay
        self.lr_decay_iters = lr_decay_iters

model = SimpleModel()
optimizer = Adam(model.parameters(), lr=0.001)
opt = OptConfig(lr_policy='lambda')

ARGS = {
    'optimizer': optimizer,
    'opt': opt
}
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 LambdaLR — a LambdaLR output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a LambdaLR 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
get_state_dict_on_cpu Ran
ran on a synthesized input
naoto0804/pytorch-inpainting-with-partial-conv/util/io.py
code served (permissive licence) · get_code("c333d34b2f3803eb")
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 OrderedDict. 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)

class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
        self.bn = nn.BatchNorm1d(3)
    
    def forward(self, x):
        x = self.linear(x)
        x = self.bn(x)
        return x

model = SimpleModel()
_ = model(torch.randn(2, 4))

ARGS = {
    "obj": model
}
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 OrderedDict — a OrderedDict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a OrderedDict 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
gram_matrix Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from Oldpan/Deep-Painterly-Harmonization-Pytorch
pointer only; the stored copy get_code serves, from Oldpan/Deep-Painterly-Harmonization-Pytorch, is pointer only (licence: NONE) · get_code("1090950b58e9358b")
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.

gram_matrix Ran
ran on a synthesized input
naoto0804/pytorch-inpainting-with-partial-conv/loss.py
code served (permissive licence) · get_code("1715f300a6a58899")
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, 4) 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 feature tensor with shape (batch=2, channels=4, height=3, width=5)
# Using distinct sizes: batch=2, ch=4, h=3, w=5 to make dimensions unambiguous
feat = torch.randn(2, 4, 3, 5)

ARGS = {
    'feat': feat
}
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 3, dtype family float, shape (2, 4, 4) — shape (2, 4, 4) 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
init_net Ran
ran; our contract draft was wrong, not the code
cameltr/rgtsi/models/networks.py
code served (permissive licence) · get_code("64cdaca975e8a365")
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 SimpleNet. 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 torch.nn as nn
from torch.nn import init

torch.manual_seed(0)

# Create a simple neural network with Conv2d, Linear, and BatchNorm2d layers
class SimpleNet(nn.Module):
    def __init__(self):
        super(SimpleNet, self).__init__()
        self.conv1 = nn.Conv2d(3, 16, kernel_size=3)
        self.bn1 = nn.BatchNorm2d(16)
        self.linear1 = nn.Linear(16, 8)
        self.linear2 = nn.Linear(8, 4)
    
    def forward(self, x):
        x = self.conv1(x)
        x = self.bn1(x)
        x = x.view(x.size(0), -1)
        x = self.linear1(x)
        x = self.linear2(x)
        return x

# Instantiate the network
net = SimpleNet()

# Define ARGS dictionary with all parameters for init_net
ARGS = {
    'net': net,
    'init_type': 'normal',
    'init_gain': 0.02,
    'gpu_ids': []
}
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 SimpleNet — a SimpleNet output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a SimpleNet 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
load_ckpt Ran
ran on a synthesized input
naoto0804/pytorch-inpainting-with-partial-conv/util/io.py
code served (permissive licence) · get_code("6494155d4a61448e")
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 int, ndim 0, dtype family int, 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
import torch.nn as nn
import tempfile
import os

torch.manual_seed(0)

# Create a simple model
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

# Create another simple model
class AnotherModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(3, 2)
    
    def forward(self, x):
        return self.linear(x)

# Instantiate models
model1 = SimpleModel()
model2 = AnotherModel()

# Create optimizers
optimizer1 = torch.optim.SGD(model1.parameters(), lr=0.01)
optimizer2 = torch.optim.Adam(model2.parameters(), lr=0.001)

# Create a checkpoint file with state dicts
ckpt_dict = {
    'model1': model1.state_dict(),
    'model2': model2.state_dict(),
    'optimizer1': optimizer1.state_dict(),
    'optimizer2': optimizer2.state_dict(),
    'n_iter': 42
}

# Create a temporary checkpoint file
with tempfile.NamedTemporaryFile(delete=False, suffix='.pt') as f:
    ckpt_path = f.name
    torch.save(ckpt_dict, ckpt_path)

try:
    # Define the arguments
    ARGS = {
        'ckpt_name': ckpt_path,
        'models': [('model1', model1), ('model2', model2)],
        'optimizers': [('optimizer1', optimizer1), ('optimizer2', optimizer2)]
    }
finally:
    # Clean up the temporary file after defining ARGS
    pass
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 int, ndim 0, dtype family int, 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_downsampling_network Ran
ran on a synthesized input
cameltr/transref/models/RefPA/Model_utils.py
code served (permissive licence) · get_code("53fc335094a0c681")
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

torch.manual_seed(0)

ARGS = {
    "layernum": 2,
    "in_channels": 3,
    "out_channels": 64,
}
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 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
make_residual_block Ran
ran on a synthesized input
cameltr/transref/models/RefPA/Model_utils.py
code served (permissive licence) · get_code("5e4921b68598512f")
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

torch.manual_seed(0)

ARGS = {
    'blocknum': 2,
    'input_channel': 64,
    'output_channel': 64,
    'bias': 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 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
percept_style_loss Ran
ran; our contract draft was wrong, not the code
devansh20la/Image_inpainting/Train_Gen.py
pointer only (licence: NONE) · get_code("546499c4d5f6e29a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, devansh20la/Image_inpainting 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.

pos_clip Ran
ran, honoured the contract we drafted
SeitaroShinagawa/chainer-partial_convolution_image_inpainting/generate_windows.py
code served (permissive licence) · get_code("936e38231c8a7aa7")
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) and returned int, ndim 0, dtype family int, 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
import numpy as np

torch.manual_seed(0)

# pos_clip takes two parameters:
# x: a numeric value (int or float) that represents a position
# img_size: an integer representing the image size

# Test case 1: x is negative
x_negative = -5
img_size_1 = 100

# Test case 2: x is within bounds
x_within = 50
img_size_2 = 100

# Test case 3: x exceeds img_size - 1
x_exceeds = 150
img_size_3 = 100

# We'll use the first test case for ARGS
ARGS = {
    "x": -5,
    "img_size": 100
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, 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
random_mask Ran
ran on a synthesized input
King-HAW/CT_inpainting/libs/util.py
code served (permissive licence) · get_code("b40728d4612d7b4a")
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 (128, 256, 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
from random import randint

# Set seed for reproducibility
np.random.seed(0)

# Define arguments for random_mask function
ARGS = {
    'height': 128,
    'width': 256,
    'channels': 3
}
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 (128, 256, 3) — shape (128, 256, 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
random_mask Ran
ran on a synthesized input
TrinhQuocNguyen/Edited_PConv-Keras/libs/util.py
code served (permissive licence) · get_code("256be19ab72d51a4")
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 (128, 256, 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
from random import randint, seed

# Set seed for reproducibility
seed(42)

# Define arguments for random_mask function
ARGS = {
    "height": 128,
    "width": 256,
    "channels": 3
}
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 (128, 256, 3) — shape (128, 256, 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
random_mask_line_for_ct Ran
ran on a synthesized input
King-HAW/CT_inpainting/libs/util.py
code served (permissive licence) · get_code("733d83088fe34603")
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 (256, 256, 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
from random import randint

# Analyze the function signature and requirements
# random_mask_line_for_ct(height, width, channels=3)
# The function expects:
# - height: int, must be >= 64
# - width: int, must be >= 64
# - channels: int (optional, default=3)

ARGS = {
    'height': 256,
    'width': 256,
    'channels': 3
}
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 (256, 256, 3) — shape (256, 256, 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
random_mask_rectangles Ran
ran on a synthesized input
TrinhQuocNguyen/Edited_PConv-Keras/libs/util.py
code served (permissive licence) · get_code("aa6d10069438a1c5")
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 (128, 128, 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
from random import randint

# Define ARGS dictionary with valid arguments for random_mask_rectangles
ARGS = {
    'height': 128,
    'width': 128,
    'channels': 3,
    'percent_from': 10.0,
    'percent_to': 20.0,
    'only_rec': True,
    'short_rec': False
}
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 (128, 128, 3) — shape (128, 128, 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
random_walk Ran
ran on a synthesized input
naoto0804/pytorch-inpainting-with-partial-conv/generate_data.py
code served (permissive licence) · get_code("1b25a2d389331946")
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 2, dtype family float, shape (5, 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 numpy as np
import random

random.seed(0)
np.random.seed(0)

# Create a small canvas (2D array)
canvas = np.ones((5, 5), dtype=np.float32)

# Initial position
ini_x = 2
ini_y = 2

# Length of the random walk
length = 3

ARGS = {
    "canvas": canvas,
    "ini_x": ini_x,
    "ini_y": ini_y,
    "length": length,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (5, 5) — shape (5, 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
resize Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
cameltr/transref/models/TransRef.py
code served (permissive licence) · get_code("5d7bf5f17f71b491")
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, 8, 10) 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 torch.nn.functional as F

torch.manual_seed(0)

# Create a small input tensor with shape (batch, channels, height, width)
input_tensor = torch.randn(2, 3, 4, 5)

# Define arguments for the resize function
ARGS = {
    'input': input_tensor,
    'size': (8, 10),
    'scale_factor': None,
    'mode': 'nearest',
    'align_corners': None,
    'warning': True
}
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, 8, 10) — shape (2, 3, 8, 10) 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
to_items Ran
ran; our contract draft was wrong, not the code
yashk2000/SneakySketchers/inpainting/utilities.py
code served (permissive licence) · get_code("79d7b29bdb460a4f")
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

torch.manual_seed(0)

# The function `to_items` takes a dict and calls _to_item on each item.
# _to_item expects item[0] (a key) and item[1] (a tensor with .item() method).
# So we need a dict where values are 0-d tensors (scalars).

dic = {
    'loss': torch.tensor(0.5),
    'accuracy': torch.tensor(0.95),
    'metric': torch.tensor(1.2)
}

ARGS = {
    'dic': dic
}
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 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
total_variation_loss Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
naoto0804/pytorch-inpainting-with-partial-conv/loss.py
code served (permissive licence) · get_code("dedfa1b69056bdc7")
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)

# The function expects a 4D tensor (batch, channels, height, width)
# It computes total variation loss by comparing adjacent pixels
# Using small but distinct dimensions: batch=2, channels=3, height=4, width=5
image = torch.randn(2, 3, 4, 5)

ARGS = {
    "image": image
}
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
total_variation_loss Ran
ran on a synthesized input
yashk2000/SneakySketchers/inpainting/loss.py
code served (permissive licence) · get_code("48322e1ae6659815")
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
import torch.nn as nn

torch.manual_seed(0)

# Create a small batch of images (batch_size=2, channels=3, height=4, width=5)
image = torch.randn(2, 3, 4, 5)

# Create a small batch of masks (same shape as image, values between 0 and 1)
mask = torch.rand(2, 3, 4, 5)

# Method parameter can be 'sum' or 'mean'
method = 'sum'

ARGS = {
    'image': image,
    'mask': mask,
    'method': method
}
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
weights_init Ran
ran; our contract draft was wrong, not the code
naoto0804/pytorch-inpainting-with-partial-conv/net.py
code served (permissive licence) · get_code("b0a0259ffdb9c7d8")
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 function. 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 math

# Set seed for reproducibility
torch.manual_seed(0)

# Create a simple model with Conv and Linear layers to test the initialization
class SimpleModel(nn.Module):
    def __init__(self):
        super(SimpleModel, self).__init__()
        self.conv1 = nn.Conv2d(3, 16, kernel_size=3)
        self.linear1 = nn.Linear(16, 8)
        self.linear2 = nn.Linear(8, 4)
    
    def forward(self, x):
        x = self.conv1(x)
        x = x.view(x.size(0), -1)
        x = self.linear1(x)
        x = self.linear2(x)
        return x

# Define ARGS dict with all parameters for weights_init
ARGS = {
    'init_type': 'gaussian'
}
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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
random_mask_rectangle Not yet run
unverified (harvested, no recorded run)
King-HAW/CT_inpainting/libs/util.py
code served (permissive licence) · get_code("d494001767883afe")
How it ran

no invocation recorded.

spectral_norm Not yet run
unverified (harvested, no recorded run)
cameltr/rgtsi/models/Discriminator.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from tsingqguo/misf, is pointer only (licence: NONE) · get_code("b189ed0149b76880")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from tsingqguo/misf, 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.

Also present in other papers' code

Of 31 samples lifted from this paper's linked repositories, 31 carry a function identity and 0 do not. Of the 31 distinct functions with an identity, 13 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 1 the same month, 13 later) and 18 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
spectral_norm 14 other papers
14 later · 5 only as an assembly brick
1908.00463 (2019-08)
DIODE: A Dense Indoor and Outdoor DEpth Dataset
1911.10375 (2019-11)
Region Normalization for Image Inpainting
2103.15087 (2021-03)
Learning a Sketch Tensor Space for Image Inpainting of Man-made Scenes
and 11 more not named here
gram_matrix 12 other papers
2 dated earlier, 1 the same month, 9 later
1508.06576 (2015-08)
A Neural Algorithm of Artistic Style
1703.07511 (2017-03)
Deep Photo Style Transfer
1804.03189 (2018-04)
Deep Painterly Harmonization
and 9 more not named here
equal_lr 10 other papers
1 dated earlier, 9 later · 1 only as an assembly brick
1710.10196 (2017-10)
Progressive Growing of GANs for Improved Quality, Stability, and Variation
1812.04948 (2018-12)
A Style-Based Generator Architecture for Generative Adversarial Networks
2004.05571 (2020-04)
Cross-domain Correspondence Learning for Exemplar-based Image Translation
and 7 more not named here
weights_init 8 other papers
2 dated earlier, 6 later
1611.07004 (2016-11)
Image-to-Image Translation with Conditional Adversarial Networks
1712.02478 (2017-12)
Stacked Conditional Generative Adversarial Networks for Jointly Learning Shadow Detection and Shadow Removal
1905.02884 (2019-05)
Deep Flow-Guided Video Inpainting
and 5 more not named here
gram_matrix 6 other papers
1 dated earlier, 5 later
1611.07004 (2016-11)
Image-to-Image Translation with Conditional Adversarial Networks
2004.02788 (2020-04)
Self-Supervised Scene De-occlusion
2010.09750 (2020-10)
Investigating and Simplifying Masking-based Saliency Methods for Model Interpretability
and 3 more not named here
init_net 5 other papers
1 dated earlier, 4 later
1611.07004 (2016-11)
Image-to-Image Translation with Conditional Adversarial Networks
1807.09251 (2018-07)
GANimation: Anatomically-aware Facial Animation from a Single Image
1811.12641 (2018-11)
Transferable Adversarial Attacks for Image and Video Object Detection
and 2 more not named here
total_variation_loss 5 other papers
1 dated earlier, 4 later
1611.07004 (2016-11)
Image-to-Image Translation with Conditional Adversarial Networks
2004.02788 (2020-04)
Self-Supervised Scene De-occlusion
2010.09750 (2020-10)
Investigating and Simplifying Masking-based Saliency Methods for Model Interpretability
and 2 more not named here
resize 4 other papers
4 later
2111.14813 (2021-11)
TransWeather: Transformer-based Restoration of Images Degraded by Adverse Weather Conditions
2201.01293 (2022-01)
A Transformer-Based Siamese Network for Change Detection
2310.09276 (2023-10)
Transformer-based Multimodal Change Detection with Multitask Consistency Constraints
and 1 more not named here
dialation_holes 2 other papers
2 later · 1 only as an assembly brick
2103.12723 (2021-03)
DeFLOCNet: Deep Image Editing via Flexible Low-level Controls
2105.02201 (2021-05)
PD-GAN: Probabilistic Diverse GAN for Image Inpainting
get_scheduler 1 other paper
1 later
2307.11404 (2023-07)
Latent-OFER: Detect, Mask, and Reconstruct with Latent Vectors for Occluded Facial Expression Recognition
get_state_dict_on_cpu 1 other paper
1 later
2008.03737 (2020-08)
Recurrent Feature Reasoning for Image Inpainting
load_ckpt 1 other paper
1 later
2008.03737 (2020-08)
Recurrent Feature Reasoning for Image Inpainting
to_items 1 other paper
1 later
2104.11493 (2021-04)
Stroke-Based Scene Text Erasing Using Synthetic Data for Training

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

More are linked than shown here.

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

Abstract

Existing deep learning based image inpainting methods use a standard convolutional network over the corrupted image, using convolutional filter responses conditioned on both valid pixels as well as the substitute values in the masked holes (typically the mean value). This often leads to artifacts such as color discrepancy and blurriness. Post-processing is usually used to reduce such artifacts, but are expensive and may fail. We propose the use of partial convolutions, where the convolution is masked and renormalized to be conditioned on only valid pixels. We further include a mechanism to automatically generate an updated mask for the next layer as part of the forward pass. Our model outperforms other methods for irregular masks. We show qualitative and quantitative comparisons with other methods to validate our approach.

For agents

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

get_harvested_code_for_paper("1804.07723")
get_code_for_paper("1804.07723")
have("1804.07723")

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

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

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

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

Connect an agent — have() is free.