SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1909.12507 · 2019

Region-wise Generative Adversarial ImageInpainting for Large Missing Areas

arXiv · PDF · Open in the Atlas

Code that ran

4 of 13 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, 0 violated it and 4 have no contract verdict; 0 failures of our instrument; 9 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/1909.12507.json · badge: /api/ran/1909.12507.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
vickyFox/Region-wise-Inpainting canonical (classifier label)
classifier basis: census
4 ran · 9 no recorded run
FunctionStatusWhere it lives
discontinuous_mask Ran
ran on a synthesized input
vickyFox/Region-wise-Inpainting/mask_online.py
code served (permissive licence) · get_code("5d99cc885e3d6cec")
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 float, shape (128, 256, 1) 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 seed

# Set seed for reproducibility
seed(42)

ARGS = {
    'height': 128,
    'width': 256,
    'num': 5,
    'low': 10,
    'high': 50,
    '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 float, shape (128, 256, 1) — shape (128, 256, 1) 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
gram_matrix Ran
ran on a synthesized input
vickyFox/Region-wise-Inpainting/vgg/vgg16.py
code served (permissive licence) · get_code("3c5fa1af75451d9b")
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 EagerTensor, ndim 3, dtype family float, shape (2, 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 tensorflow as tf
import numpy as np

# Create a small input tensor
# Shape: (B=2, H=4, W=3, C=5)
# Using distinct sizes for each dimension to allow later shape probing
x = tf.constant(np.random.randn(2, 4, 3, 5).astype(np.float32))

ARGS = {
    "x": x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 3, dtype family float, shape (2, 5, 5) — shape (2, 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
l1 Ran
ran on a synthesized input
vickyFox/Region-wise-Inpainting/vgg/vgg16.py
code served (permissive licence) · get_code("958e1dad894204f9")
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 EagerTensor, 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 tensorflow as tf
import numpy as np

# Create two small picture tensors for the L1 distance function
pic1 = tf.constant(np.random.randn(2, 4).astype(np.float32))
pic2 = tf.constant(np.random.randn(2, 4).astype(np.float32))

ARGS = {
    "pic1": pic1,
    "pic2": pic2,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, 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
loss_perceptual Ran
ran on a synthesized input
vickyFox/Region-wise-Inpainting/vgg/vgg16.py
code served (permissive licence) · get_code("ace8bedb95ec84bb")
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 EagerTensor, 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 tensorflow as tf

# Create three small image tensors
# pic1 should be iterable (used in: for o, c, g in zip(pic2, pic3, pic1))
# pic2 should be iterable (used in: for o, c, g in zip(pic2, pic3, pic1))
# pic3 should be iterable (used in: for o, c, g in zip(pic2, pic3, pic1))
# Each element will be passed to l1(), which expects tensors supporting tf.abs() and tf.reduce_sum()

pic1_elem1 = tf.constant([[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0]], dtype=tf.float32)
pic1_elem2 = tf.constant([[0.5, 1.5, 2.5, 3.5], [4.5, 5.5, 6.5, 7.5]], dtype=tf.float32)
pic1 = [pic1_elem1, pic1_elem2]

pic2_elem1 = tf.constant([[1.1, 2.1, 3.1, 4.1], [5.1, 6.1, 7.1, 8.1]], dtype=tf.float32)
pic2_elem2 = tf.constant([[0.6, 1.6, 2.6, 3.6], [4.6, 5.6, 6.6, 7.6]], dtype=tf.float32)
pic2 = [pic2_elem1, pic2_elem2]

pic3_elem1 = tf.constant([[0.9, 1.9, 2.9, 3.9], [4.9, 5.9, 6.9, 7.9]], dtype=tf.float32)
pic3_elem2 = tf.constant([[0.4, 1.4, 2.4, 3.4], [4.4, 5.4, 6.4, 7.4]], dtype=tf.float32)
pic3 = [pic3_elem1, pic3_elem2]

ARGS = {
    "pic1": pic1,
    "pic2": pic2,
    "pic3": pic3,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, 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
GPNet Not yet run
unverified (harvested, no recorded run)
vickyFox/Region-wise-Inpainting/inpaint_model.py
code served (permissive licence) · get_code("4dbeacb25c776ca6")
How it ran

no invocation recorded.

RW_generator Not yet run
unverified (harvested, no recorded run)
vickyFox/Region-wise-Inpainting/inpaint_model.py
code served (permissive licence) · get_code("354a1183a890c516")
How it ran

no invocation recorded.

SINet Not yet run
unverified (harvested, no recorded run)
vickyFox/Region-wise-Inpainting/inpaint_model.py
code served (permissive licence) · get_code("9625aa919f96e624")
How it ran

no invocation recorded.

continuous_mask Not yet run
unverified (harvested, no recorded run)
vickyFox/Region-wise-Inpainting/mask_online.py
code served (permissive licence) · get_code("bd4279e3158a53b0")
How it ran

no invocation recorded.

gradients_penalty Not yet run
unverified (harvested, no recorded run)
vickyFox/Region-wise-Inpainting/inpaint_ops.py
code served (permissive licence) · get_code("9c3b532b6c61ff2c")
How it ran

no invocation recorded.

random_interpolates Not yet run
unverified (harvested, no recorded run)
vickyFox/Region-wise-Inpainting/inpaint_ops.py
code served (permissive licence) · get_code("4b2c8a162107246c")
How it ran

no invocation recorded.

region_conv Not yet run
unverified (harvested, no recorded run)
vickyFox/Region-wise-Inpainting/region_conv.py
code served (permissive licence) · get_code("9862d9168a9d30c0")
How it ran

no invocation recorded.

region_deconv Not yet run
unverified (harvested, no recorded run)
vickyFox/Region-wise-Inpainting/region_conv.py
code served (permissive licence) · get_code("4b43f373e59c22bf")
How it ran

no invocation recorded.

standard_conv Not yet run
unverified (harvested, no recorded run)
vickyFox/Region-wise-Inpainting/inpaint_ops.py
code served (permissive licence) · get_code("d82dd6159e4b60a8")
How it ran

no invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 13 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.

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

Recently deep neutral networks have achieved promising performance for filling large missing regions in image inpainting tasks. They usually adopted the standard convolutional architecture over the corrupted image, leading to meaningless contents, such as color discrepancy, blur and artifacts. Moreover, most inpainting approaches cannot well handle the large continuous missing area cases. To address these problems, we propose a generic inpainting framework capable of handling with incomplete images on both continuous and discontinuous large missing areas, in an adversarial manner. From which, region-wise convolution is deployed in both generator and discriminator to separately handle with the different regions, namely existing regions and missing ones. Moreover, a correlation loss is introduced to capture the non-local correlations between different patches, and thus guides the generator to obtain more information during inference. With the help of our proposed framework, we can restore semantically reasonable and visually realistic images. Extensive experiments on three widely-used datasets for image inpainting tasks have been conducted, and both qualitative and quantitative experimental results demonstrate that the proposed model significantly outperforms the state-of-the-art approaches, both on the large continuous and discontinuous missing areas.

For agents

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

get_harvested_code_for_paper("1909.12507")
get_code_for_paper("1909.12507")
have("1909.12507")

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

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

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

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

Connect an agent — have() is free.