Learning to Incorporate Structure Knowledge for Image Inpainting

Jie Yang, Zhiquan Qi, Yong Shi
2/11/2020
cs.CVcs.LGeess.IV

Official code: YoungGod/sturcture-inpainting (110 stars, Python, last commit 2020-12-30).

Abstract

This paper develops a multi-task learning framework that attempts to incorporate the image structure knowledge to assist image inpainting, which is not well explored in previous works. The primary idea is to train a shared generator to simultaneously complete the corrupted image and corresponding structures --- edge and gradient, thus implicitly encouraging the generator to exploit relevant structure knowledge while inpainting.

Show full abstract

In the meantime, we also introduce a structure embedding scheme to explicitly embed the learned structure features into the inpainting process, thus to provide possible preconditions for image completion. Specifically, a novel pyramid structure loss is proposed to supervise structure learning and embedding. Moreover, an attention mechanism is developed to further exploit the recurrent structures and patterns in the image to refine the generated structures and contents. Through multi-task learning, structure embedding besides with attention, our framework takes advantage of the structure knowledge and outperforms several state-of-the-art methods on benchmark datasets quantitatively and qualitatively.

View on arXivView PDF

Code Implementations(1)

Source code of AAAI 2020 paper 'Learning to Incorporate Structure Knowledge for Image Inpainting'

11016Python, ShellNov 16, 20195 years ago
attention-mechanismimage-completionimage-inpaintingpyramid-structure-lossstructure-embedding

Similar Papers

Cite this paper

@article{yang2020learning,
  title  = {Learning to Incorporate Structure Knowledge for Image Inpainting},
  author = {Jie Yang and Zhiquan Qi and Yong Shi},
  year   = {2020},
  eprint = {2002.04170},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2002.04170}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2002.04170.svg)](https://codeofpaper.com/paper/2002.04170)

Discussion