Free-Form Image Inpainting via Contrastive Attention Network
Preprint
Abstract
Most deep learning based image inpainting approaches adopt autoencoder or its variants to fill missing regions in images. Encoders are usually utilized to learn powerful representational spaces, which are important for dealing with sophisticated learning tasks. Specifically, in image inpainting tasks, masks with any shapes can appear anywhere in images (i.e., free-form masks) which form complex patterns. It is difficult for encoders to capture such powerful representations under this complex situation. To tackle this problem, we propose a self-supervised Siamese inference network to improve the robustness and generalization. It can encode contextual semantics from full resolution images and obtain more discriminative representations. we further propose a multi-scale decoder with a novel dual attention fusion module (DAF), which can combine both the restored and known regions in a smooth way. This multi-scale architecture is beneficial for decoding discriminative representations learned by encoders into images layer by layer. In this way, unknown regions will be filled naturally from outside to inside. Qualitative and quantitative experiments on multiple datasets, including facial and natural datasets (i.e., Celeb-HQ, Pairs Street View, Places2 and ImageNet), demonstrate that our proposed method outperforms state-of-the-art methods in generating high-quality inpainting results.Keywords
All Related Versions
This publication has 6 references indexed in Scilit:
- Wavelet Domain Generative Adversarial Network for Multi-scale Face HallucinationInternational Journal of Computer Vision, 2019
- DeMeshNet: Blind Face Inpainting for Deep MeshFace VerificationIEEE Transactions on Information Forensics and Security, 2017
- Globally and locally consistent image completionACM Transactions on Graphics, 2017
- Places: A 10 Million Image Database for Scene RecognitionIEEE Transactions on Pattern Analysis and Machine Intelligence, 2017
- What makes Paris look like Paris?Communications of the ACM, 2015
- Image Inpainting by Patch Propagation Using Patch SparsityIEEE Transactions on Image Processing, 2010