Skip to main content
QUICK REVIEW

[Paper Review] Image Inpainting for Irregular Holes Using Partial Convolutions

Guilin Liu, Fitsum A. Reda|arXiv (Cornell University)|Apr 20, 2018
Advanced Image Processing TechniquesComputer Science34 references17 citations
TL;DR

This paper proposes partial convolutions with automatic mask updating to improve image inpainting for irregular holes, eliminating dependence on initial hole values and post-processing. The method achieves state-of-the-art results by conditioning convolutions only on valid pixels and dynamically shrinking the mask through learned updates, significantly reducing artifacts and improving realism across diverse hole shapes and sizes.

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.

Motivation & Objective

  • To address artifacts in deep learning-based image inpainting caused by dependence on initial hole values (e.g., mean or fixed values).
  • To develop a method robust to irregularly shaped, large, or border-touching holes without requiring post-processing or blending.
  • To enable end-to-end training of U-Net architectures with skip connections using standard convolutions, which previously failed due to hole value bias.
  • To create and release a large benchmark dataset of images with irregular masks for future research.

Proposed method

  • Introduces a partial convolution layer that masks and renormalizes convolutional operations to depend only on valid (non-hole) pixels at each layer.
  • Incorporates an automatic mask update mechanism that propagates and shrinks the mask over layers, removing masked regions where valid features were successfully aggregated.
  • Uses a learnable mask update strategy that dynamically adjusts the mask based on the receptive field and valid pixel coverage in feature maps.
  • Applies the partial convolution layer within a U-Net-like architecture, enabling skip connections without introducing artifacts from hole initialization.
  • Constructs training inputs by replacing masked regions with learned or fixed values (e.g., ImageNet mean), but ensures the network learns to ignore them via masked operations.
  • Extends the framework to image super-resolution by simulating low-resolution inputs with holes via pixel offsetting and masking.

Experimental results

Research questions

  • RQ1Can a deep learning model achieve high-quality image inpainting for irregularly shaped holes without relying on post-processing or blending?
  • RQ2Does conditioning convolutions only on valid pixels significantly reduce artifacts such as color discrepancies and blurriness?
  • RQ3Can a mask update mechanism improve feature representation and allow the network to progressively recover from large or complex holes?
  • RQ4How does the model perform on holes near or touching image boundaries, compared to standard methods?
  • RQ5Can the partial convolution framework be generalized to other image restoration tasks, such as super-resolution?

Key findings

  • The proposed method outperforms existing state-of-the-art methods in both qualitative and quantitative evaluations, especially on irregular and large holes.
  • Human evaluation on Amazon Mechanical Turk showed that our method was preferred in 70-80% of pairwise comparisons in the unlimited time setting, significantly outperforming alternatives.
  • In the limited time setting, our method was preferred over others in 60-70% of comparisons within 250ms, indicating faster perceptual realism.
  • The model maintains strong performance even as hole size increases, with no catastrophic degradation in quality, as demonstrated on holes dilated up to 95 pixels.
  • The method generalizes well to image super-resolution, producing sharper and more realistic results than SRGAN and MDSR+ when applied to low-resolution inputs with simulated holes.
  • The authors released a large benchmark dataset of images with irregular masks, enabling future evaluation and training of inpainting models on realistic, non-rectangular hole patterns.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.