Skip to main content
QUICK REVIEW

[Paper Review] Semi-parametric Image Inpainting

Karim Iskakov|arXiv (Cornell University)|Jul 8, 2018
Generative Adversarial Networks and Image SynthesisComputer Science26 references12 citations
TL;DR

This paper proposes a semi-parametric image inpainting method that enhances deep neural network performance by incorporating similar images from an external database as auxiliary input during inference. By leveraging content-based image retrieval and a UNet-like architecture, the approach achieves more realistic results than prior methods, especially on irregular holes, as validated by user studies and quantitative metrics on the CelebA-HQ dataset with a custom human-drawn mask dataset.

ABSTRACT

This paper introduces a semi-parametric approach to image inpainting for irregular holes. The nonparametric part consists of an external image database. During test time database is used to retrieve a supplementary image, similar to the input masked picture, and utilize it as auxiliary information for the deep neural network. Further, we propose a novel method of generating masks with irregular holes and present public dataset with such masks. Experiments on CelebA-HQ dataset show that our semi-parametric method yields more realistic results than previous approaches, which is confirmed by the user study.

Motivation & Objective

  • To improve image inpainting realism by incorporating auxiliary information from similar images during inference.
  • To address the limitation of existing methods that rely solely on masked input and lack external context.
  • To develop a publicly available dataset of irregular masks generated from human-drawn strokes for more realistic evaluation.
  • To demonstrate that external image retrieval can significantly boost visual quality in deep learning-based inpainting.

Proposed method

  • The method uses a UNet-like convolutional neural network that takes a masked image and a similar image from an external database as input.
  • Similar images are retrieved using VGG-16 features via content-based image retrieval, providing semantic and structural guidance.
  • The network employs a multi-scale loss combining L1, perceptual, and adversarial losses to improve realism and detail fidelity.
  • A novel irregular mask generation pipeline uses vector drawings from the Quick, Draw! dataset to create diverse, human-like masks.
  • The approach is evaluated with both one (Sim-1) and zero (Sim-0) auxiliary images, comparing against Telea and PConv baselines.
  • The external database serves as a nonparametric memory bank, enabling the model to copy and adapt features from similar images.

Experimental results

Research questions

  • RQ1Can the integration of similar external images significantly improve the realism of deep learning-based image inpainting?
  • RQ2How does the use of human-generated irregular masks affect model performance compared to regular or synthetic masks?
  • RQ3To what extent does auxiliary image retrieval enhance detail consistency and structural coherence in inpainted regions?
  • RQ4What are the failure modes of semi-parametric inpainting, and how do they relate to training data diversity and loss design?

Key findings

  • The proposed method, Sim-1, achieved a 51% win rate in a user study, significantly outperforming PConv (31%) and other baselines.
  • Sim-1 outperformed all baselines in L1 and FID metrics, especially at higher hole-to-image area ratios.
  • When given a random or noise image as auxiliary input, the model altered its output, confirming that the auxiliary image actively influences generation.
  • Failure cases included blurry results, unrealistic details (e.g., unnatural eyes), and inconsistent makeup styles, indicating limitations in generalization and training data diversity.
  • The method demonstrated robustness to varying mask shapes, with performance improvements on larger holes, suggesting strong generalization on irregular structures.

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.