Image Inpainting with Learnable Bidirectional Attention Maps

Chaohao Xie, Shaohui Liu, Chao Li, Ming-Ming Cheng, Wangmeng Zuo +3 more
9/3/2019
cs.CV
transformer-attention

Official code: Vious/LBAM_inpainting (18 stars, MIT, last commit 2019-11-05).

Abstract

Most convolutional network (CNN)-based inpainting methods adopt standard convolution to indistinguishably treat valid pixels and holes, making them limited in handling irregular holes and more likely to generate inpainting results with color discrepancy and blurriness. Partial convolution has been suggested to address this issue, but it adopts handcrafted feature re-normalization, and only considers forward mask-updating.

Show full abstract

In this paper, we present a learnable attention map module for learning feature renormalization and mask-updating in an end-to-end manner, which is effective in adapting to irregular holes and propagation of convolution layers. Furthermore, learnable reverse attention maps are introduced to allow the decoder of U-Net to concentrate on filling in irregular holes instead of reconstructing both holes and known regions, resulting in our learnable bidirectional attention maps. Qualitative and quantitative experiments show that our method performs favorably against state-of-the-arts in generating sharper, more coherent and visually plausible inpainting results. The source code and pre-trained models will be available.

View on arXivView PDF

Code Implementations(1)

MIT

Code for paper: Image Inpainting with Learnable Bidirectional Attention Maps (ICCV 2019)

181Sep 5, 20197 years agoMIT

Similar Papers

Cite this paper

@article{xie2019image,
  title  = {Image Inpainting with Learnable Bidirectional Attention Maps},
  author = {Chaohao Xie and Shaohui Liu and Chao Li and Ming-Ming Cheng and Wangmeng Zuo and Xiao Liu and Shilei Wen and Errui Ding},
  year   = {2019},
  eprint = {1909.00968},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1909.00968}
}

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

Discussion