Context-Aware Image Inpainting with Learned Semantic Priors

Wendong Zhang, Junwei Zhu, Ying Tai, Yunbo Wang, Wenqing Chu +3 more
6/14/2021
cs.CV

Official code: WendongZh/SPL (57 stars, Python, last commit 2021-12-09).

Abstract

Recent advances in image inpainting have shown impressive results for generating plausible visual details on rather simple backgrounds. However, for complex scenes, it is still challenging to restore reasonable contents as the contextual information within the missing regions tends to be ambiguous.

Show full abstract

To tackle this problem, we introduce pretext tasks that are semantically meaningful to estimating the missing contents. In particular, we perform knowledge distillation on pretext models and adapt the features to image inpainting. The learned semantic priors ought to be partially invariant between the high-level pretext task and low-level image inpainting, which not only help to understand the global context but also provide structural guidance for the restoration of local textures. Based on the semantic priors, we further propose a context-aware image inpainting model, which adaptively integrates global semantics and local features in a unified image generator. The semantic learner and the image generator are trained in an end-to-end manner. We name the model SPL to highlight its ability to learn and leverage semantic priors. It achieves the state of the art on Places2, CelebA, and Paris StreetView datasets.

View on arXivView PDF

Code Implementations(1)

WendongZh/SPLOfficial100%

[IJCAI'21] Code for Context-Aware Image Inpainting with Learned Semantic Priors,

574Python, DockerfileMay 19, 20214 years ago

Similar Papers

Cite this paper

@article{zhang2021contextaware,
  title  = {Context-Aware Image Inpainting with Learned Semantic Priors},
  author = {Wendong Zhang and Junwei Zhu and Ying Tai and Yunbo Wang and Wenqing Chu and Bingbing Ni and Chengjie Wang and Xiaokang Yang},
  year   = {2021},
  eprint = {2106.07220},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.07220}
}

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/2106.07220.svg)](https://codeofpaper.com/paper/2106.07220)

Discussion