Skip to main content
QUICK REVIEW

[Paper Review] Image Inpainting Guided by Coherence Priors of Semantics and Textures

Liang Liao, Jing Xiao|arXiv (Cornell University)|Dec 15, 2020
Generative Adversarial Networks and Image SynthesisComputer Science43 references8 citations
TL;DR

This paper proposes a joint image inpainting and semantic segmentation framework that leverages coherence priors between semantics and textures to improve hole filling in complex scenes. By introducing a Semantic-Wise Attention Propagation (SWAP) module and two coherence losses—global structure and local patch-level—it enables semantically guided, high-fidelity texture generation, significantly outperforming state-of-the-art methods in boundary sharpness and texture plausibility on challenging multi-category holes.

ABSTRACT

Existing inpainting methods have achieved promising performance in recovering defected images of specific scenes. However, filling holes involving multiple semantic categories remains challenging due to the obscure semantic boundaries and the mixture of different semantic textures. In this paper, we introduce coherence priors between the semantics and textures which make it possible to concentrate on completing separate textures in a semantic-wise manner. Specifically, we adopt a multi-scale joint optimization framework to first model the coherence priors and then accordingly interleavingly optimize image inpainting and semantic segmentation in a coarse-to-fine manner. A Semantic-Wise Attention Propagation (SWAP) module is devised to refine completed image textures across scales by exploring non-local semantic coherence, which effectively mitigates mix-up of textures. We also propose two coherence losses to constrain the consistency between the semantics and the inpainted image in terms of the overall structure and detailed textures. Experimental results demonstrate the superiority of our proposed method for challenging cases with complex holes.

Motivation & Objective

  • To address the challenge of image inpainting in complex holes with multiple semantic categories and mixed textures.
  • To improve texture realism and boundary sharpness by modeling mutual consistency between semantics and textures.
  • To reduce texture mix-up by guiding inpainting with semantic-aware, non-local attention.
  • To jointly optimize semantic segmentation and image inpainting using multi-scale, coarse-to-fine refinement.
  • To develop loss functions that enforce global structural and local patch-level coherence between predicted semantics and inpainted images.

Proposed method

  • Introduces a multi-scale joint optimization framework that alternately refines image inpainting and semantic segmentation in a coarse-to-fine manner.
  • Proposes a Semantic-Wise Attention Propagation (SWAP) module that selects texture features only from regions with the same predicted semantic class, reducing irrelevant texture filling.
  • Designs an image-level structure coherence loss to enforce structural alignment between the inpainted image and the predicted segmentation map.
  • Introduces a non-local patch-level coherence loss to encourage generated textures to match the distribution of known patches of the same semantic category.
  • Uses shared feature representation to model the interaction between semantics and textures across scales.
  • Employs a shared encoder-decoder backbone with task-specific heads for joint optimization of inpainting and segmentation.
Figure 1: Upper part: Mapping between image textures and edges/semantics (Dot arrow - extraction of edges/semantics; solid arrow - texture generation). Notice that two similar edge patches in a green circle could be mapped to completely different semantic textures, but one semantic will be clearly m
Figure 1: Upper part: Mapping between image textures and edges/semantics (Dot arrow - extraction of edges/semantics; solid arrow - texture generation). Notice that two similar edge patches in a green circle could be mapped to completely different semantic textures, but one semantic will be clearly m

Experimental results

Research questions

  • RQ1Can coherence priors between semantics and textures improve the quality of image inpainting in complex holes with multiple semantic regions?
  • RQ2Does semantic-wise attention propagation reduce texture mix-up compared to global or non-semantic attention?
  • RQ3Can joint optimization of inpainting and segmentation lead to better performance than sequential or independent training?
  • RQ4How effective are the proposed global and local coherence losses in preserving structural and textural consistency?
  • RQ5Can the model generalize to unseen datasets like Places2 without semantic annotations?

Key findings

  • The proposed method achieves a PSNR of 21.18, SSIM of 0.81, and FID of 38.15 on Outdoor Scenes, outperforming baseline and ablation variants.
  • The SWAP module alone improves PSNR by 3.75 points and FID by 18.85 compared to the base model, demonstrating its effectiveness in reducing texture mix-up.
  • Adding both SWAP and coherence losses (Ours Full) yields the highest gains: +1.6 points in PSNR and -1.21 in FID over Ours (SWAP) alone.
  • The model achieves a mean Intersection over Union (mIoU) of 0.71 on Outdoor Scenes and 0.57 on Cityscapes, surpassing SPG-Net and SGE-Net in segmentation accuracy.
  • On the Places2 dataset, the model generates plausible textures and structures without semantic annotations, thanks to the coherence loss providing strong scene priors.
  • Visual comparisons show that EdgeConnect produces incorrect textures due to edge ambiguity, while the proposed method generates more photo-realistic results guided by semantic consistency.
Figure 2: Proposed network architecture. At each scale, both the inpainted image and segmentation map are output from two task-specific heads to control the predicted structures of the shared features. SWAP is added between scales to progressively optimize the texture details of contextual feature.
Figure 2: Proposed network architecture. At each scale, both the inpainted image and segmentation map are output from two task-specific heads to control the predicted structures of the shared features. SWAP is added between scales to progressively optimize the texture details of contextual feature.

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.