Papers › Image Inpainting for Irregular Holes Using Partial Convolutions

Image Inpainting for Irregular Holes Using Partial Convolutions

20 Apr 2018ECCV 2018 9arXiv:1804.07723archive 2025-07-28

Guilin Liu, Fitsum A. Reda, Kevin J. Shih, Ting-Chun Wang, Andrew Tao, Bryan Catanzaro

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.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="1804.07723")

Code

Syntology Ran 9 of 31 code samples harvested from 9 repositories linked to this paper; 22 have no recorded run. Of those that ran: 3 ran · honoured contract; 1 ran · violated contract; 3 ran · our draft was wrong; 1 ran · fixture could not drive it; 1 ran with no contract checked.

By repository: community (archive-listed): 30 samples from 9 repositories, 8 ran; 1 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

60 repositories listed; official and paper-mentioned ones first.

NVIDIA/partialconv officialmentioned on GitHubpytorchNOASSERTION report
AnishWalawalkar/cs231 mentioned on GitHubpytorchNOASSERTION report
DosImpact/focusonme_core mentioned on GitHubpytorchMIT report
GabrieleMonte/CoMBInE mentioned on GitHubtf report
KPMG-wiseuniv/AI mentioned on GitHubpytorchGPL-3.0 report
King-HAW/CT_inpainting mentioned on GitHubtfMIT report
KumapowerLIU/CSA-inpainting mentioned on GitHubpytorch report
KumapowerLIU/DeFLOCNet mentioned on GitHubpytorch report
KumapowerLIU/PD-GAN mentioned on GitHubpytorch report
KumapowerLIU/Rethinking-Inpainting-MEDFE mentioned on GitHubpytorchNOASSERTION report
Maouriyan/inpainting_demo mentioned on GitHubpytorch report
MathiasGruber/PConv-Keras mentioned on GitHubpytorchMIT report
NiceRingNode/Inpainting-Cpp-Deployment mentioned on GitHubpytorchGPL-3.0 report
Oorgien/Scene-Inpainting mentioned on GitHubpytorch report
RenYurui/StructureFlow mentioned on GitHubpytorchNOASSERTION report
SimonDele/School-projects mentioned on GitHub report
SunnerLi/P-Conv mentioned on GitHubpytorch report
WendongZh/SPL mentioned on GitHubpytorch report
YaN9-Y/lafin mentioned on GitHubpytorch report
YeshengSu/EdgeConnect mentioned on GitHubpytorch report
anushkaw055/Image-Inpainting mentioned on GitHubpytorch report
bobqywei/inpainting-partial-conv mentioned on GitHubpytorch report
cameltr/rgtsi mentioned on GitHubpytorchApache-2.0 report
cameltr/transref mentioned on GitHubpytorchApache-2.0 report
devansh20la/Image_inpainting mentioned on GitHubpytorch report
diff7/pconv_hprotein mentioned on GitHubpytorch report
dnwjddl/Inpainting mentioned on GitHub report
feixuetuba/inpainting mentioned on GitHubpytorch report
feixuetuba/inpating mentioned on GitHubpytorch report
gmin7/pconv_implementation mentioned on GitHubpytorch report
hawkit/edge-tst mentioned on GitHubpytorchNOASSERTION report
hiyaroy12/DFT_inpainting mentioned on GitHubpytorch report
hz-ants/edge-connect mentioned on GitHubpytorchNOASSERTION report
joshilp/ImageInpainting mentioned on GitHubtf report
jshi31/edge-connect mentioned on GitHubpytorchNOASSERTION report
karfly/qd-imd mentioned on GitHubMIT report
lewisluk/PartialConvUnet mentioned on GitHubtf report
menon92/Python-Learning mentioned on GitHubtf report
miguel-rodrigo/dot-csv-pix2pix mentioned on GitHubtf report
mojc/GAN_lesion_filling mentioned on GitHub report
nekitmm/PConv_TF2.0 mentioned on GitHubtfMIT report
preeti-2810/object-removal mentioned on GitHubpytorchMIT report
rain58/boundary-aware-image-inpainting mentioned on GitHubpytorchMIT report
singhrk45/Object-Removal-Image-inpainting- mentioned on GitHubpytorchMIT report
waallf/edge-connect-master mentioned on GitHubpytorchNOASSERTION report
wendongzh/spn mentioned on GitHubpytorch report
xiefan-guo/ctsdg mentioned on GitHubpytorchMIT report
xkp793003821/PConv-Keras mentioned on GitHubpytorchMIT report
yashk2000/SneakySketchers mentioned on GitHubpytorchApache-2.0 report
youyuge34/AnimeInPaint mentioned on GitHubpytorchNOASSERTION report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

31 samples harvested; 9 ran; 3 honoured the contract we drafted; 22 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

3ran · honoured contract
1ran · violated contract
3ran · our draft was wrong
1ran · fixture could not drive it
1ran
22unverified

Licence: 3 of the 31 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 9 repositories linked to this paper, official or community; each sample names its own and says which. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

array_to_img SeitaroShinagawa/chainer-partial_convolution_image_inpainting/generate_windows.py community (archive-listed) ran · honoured contract MIT (permissive) · c63bfabb83547f08 · report
clip SeitaroShinagawa/chainer-partial_convolution_image_inpainting/generate_windows.py community (archive-listed) ran · honoured contract fingerprinted MIT (permissive) · 126fbb3bbd63ad67 · report
dialation_holes yashk2000/SneakySketchers/inpainting/loss.py community (archive-listed) ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · 5e14b9034e5790ba · report
equal_lr cameltr/transref/models/base_networks.py community (archive-listed) ran · our draft was wrong Apache-2.0 (permissive) · 5ef2eff36d9c9c0e · report
exceeds_bounds bobqywei/inpainting-partial-conv/inpaint.py community (archive-listed) ran · violated contract fingerprinted no licence file found · pointer only · 66b365b2efae78bf · report
get_scheduler cameltr/rgtsi/models/networks.py community (archive-listed) ran Apache-2.0 (permissive) · d2575c24d11029c0 · report
percept_style_loss devansh20la/Image_inpainting/Train_Gen.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · 546499c4d5f6e29a · report
pos_clip SeitaroShinagawa/chainer-partial_convolution_image_inpainting/generate_windows.py community (archive-listed) ran · honoured contract fingerprinted MIT (permissive) · 936e38231c8a7aa7 · report
DOE_downsample_block cameltr/transref/models/RefPA/Model_utils.py community (archive-listed) unverified Apache-2.0 (permissive) · d329ea45f095b88a · report
conf_to_param yashk2000/SneakySketchers/inpainting/utilities.py community (archive-listed) unverified Apache-2.0 (permissive) · 5159f16354d4577b · report
count_nonblack_np TrinhQuocNguyen/Edited_PConv-Keras/libs/util.py community (archive-listed) unverified MIT (permissive) · e02610738bfdc267 · report
get_norm_layer cameltr/rgtsi/models/networks.py community (archive-listed) unverified Apache-2.0 (permissive) · 5daad5c7af1b1741 · report
get_state_dict_on_cpu naoto0804/pytorch-inpainting-with-partial-conv/util/io.py community (archive-listed) unverified MIT (permissive) · c333d34b2f3803eb · report
gram_matrix naoto0804/pytorch-inpainting-with-partial-conv/loss.py community (archive-listed) unverified MIT (permissive) · 1715f300a6a58899 · report
init_net cameltr/rgtsi/models/networks.py community (archive-listed) unverified Apache-2.0 (permissive) · 64cdaca975e8a365 · report
load_ckpt naoto0804/pytorch-inpainting-with-partial-conv/util/io.py community (archive-listed) unverified MIT (permissive) · 6494155d4a61448e · report
make_downsampling_network cameltr/transref/models/RefPA/Model_utils.py community (archive-listed) unverified Apache-2.0 (permissive) · 53fc335094a0c681 · report
make_residual_block cameltr/transref/models/RefPA/Model_utils.py community (archive-listed) unverified Apache-2.0 (permissive) · 5e4921b68598512f · report
random_mask King-HAW/CT_inpainting/libs/util.py community (archive-listed) unverified MIT (permissive) · b40728d4612d7b4a · report
random_mask TrinhQuocNguyen/Edited_PConv-Keras/libs/util.py community (archive-listed) unverified MIT (permissive) · 256be19ab72d51a4 · report
random_mask_line_for_ct King-HAW/CT_inpainting/libs/util.py community (archive-listed) unverified MIT (permissive) · 733d83088fe34603 · report
random_mask_rectangle King-HAW/CT_inpainting/libs/util.py community (archive-listed) unverified MIT (permissive) · d494001767883afe · report
random_mask_rectangles TrinhQuocNguyen/Edited_PConv-Keras/libs/util.py community (archive-listed) unverified MIT (permissive) · aa6d10069438a1c5 · report
random_walk naoto0804/pytorch-inpainting-with-partial-conv/generate_data.py community (archive-listed) unverified MIT (permissive) · 1b25a2d389331946 · report
resize cameltr/transref/models/TransRef.py community (archive-listed) unverified Apache-2.0 (permissive) · 5d7bf5f17f71b491 · report
spectral_norm cameltr/rgtsi/models/Discriminator.py community (archive-listed) unverified Apache-2.0 (permissive) · b189ed0149b76880 · report
to_items yashk2000/SneakySketchers/inpainting/utilities.py community (archive-listed) unverified Apache-2.0 (permissive) · 79d7b29bdb460a4f · report
total_variation_loss naoto0804/pytorch-inpainting-with-partial-conv/loss.py community (archive-listed) unverified MIT (permissive) · dedfa1b69056bdc7 · report
total_variation_loss yashk2000/SneakySketchers/inpainting/loss.py community (archive-listed) unverified Apache-2.0 (permissive) · 48322e1ae6659815 · report
weights_init naoto0804/pytorch-inpainting-with-partial-conv/net.py community (archive-listed) unverified MIT (permissive) · b0a0259ffdb9c7d8 · report
gram_matrix identical code first harvested elsewhere ran · our draft was wrong fingerprinted licence of this copy not recorded · 1090950b58e9358b · report

Tasks

Image Inpainting

1 archive task tag without a task page not shown.

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Convolution

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections