Learning Prior Feature and Attention Enhanced Image Inpainting

Chenjie Cao, Qiaole Dong, Yanwei Fu
8/3/2022
cs.CV
transformer-attentioncontrastive-ssl

Official code: ewrfcas/MAE-FAR (92 stars, Jupyter Notebook, last commit 2024-03-05).

Abstract

Many recent inpainting works have achieved impressive results by leveraging Deep Neural Networks (DNNs) to model various prior information for image restoration. Unfortunately, the performance of these methods is largely limited by the representation ability of vanilla Convolutional Neural Networks (CNNs) backbones.On the other hand, Vision Transformers (ViT) with self-supervised pre-training have shown great potential for many visual recognition and object detection tasks.

Show full abstract

A natural question is whether the inpainting task can be greatly benefited from the ViT backbone? However, it is nontrivial to directly replace the new backbones in inpainting networks, as the inpainting is an inverse problem fundamentally different from the recognition tasks. To this end, this paper incorporates the pre-training based Masked AutoEncoder (MAE) into the inpainting model, which enjoys richer informative priors to enhance the inpainting process. Moreover, we propose to use attention priors from MAE to make the inpainting model learn more long-distance dependencies between masked and unmasked regions. Sufficient ablations have been discussed about the inpainting and the self-supervised pre-training models in this paper. Besides, experiments on both Places2 and FFHQ demonstrate the effectiveness of our proposed model. Codes and pre-trained models are released in https://github.com/ewrfcas/MAE-FAR.

View on arXivView PDF

Code Implementations(1)

ewrfcas/MAE-FAROfficial100%

Codes of Learning Prior Feature and Attention Enhanced Image Inpainting (ECCV2022)

927Jupyter Notebook, PythonAug 5, 20222 years agoNOASSERTION

Similar Papers

Cite this paper

@article{cao2022learning,
  title  = {Learning Prior Feature and Attention Enhanced Image Inpainting},
  author = {Chenjie Cao and Qiaole Dong and Yanwei Fu},
  year   = {2022},
  eprint = {2208.01837},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2208.01837}
}

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

Discussion