ZITS++: Image Inpainting by Improving the Incremental Transformer on Structural Priors

Chenjie Cao, Qiaole Dong, Yanwei Fu
10/12/2022
77 citations
cs.CV
transformer-attention

Official code: ewrfcas/ZITS-PlusPlus (102 stars, Python, Apache-2.0, last commit 2023-12-17). Most starred: DQiaole/ZITS_inpainting, a community implementation (396 stars, Python, Apache-2.0, last commit 2024-02-23, 3.9× the official stars). 1 more implementation below.

Abstract

Image inpainting involves filling missing areas of a corrupted image. Despite impressive results have been achieved recently, restoring images with both vivid textures and reasonable structures remains a significant challenge.

Show full abstract

Previous methods have primarily addressed regular textures while disregarding holistic structures due to the limited receptive fields of Convolutional Neural Networks (CNNs). To this end, we study learning a Zero-initialized residual addition based Incremental Transformer on Structural priors (ZITS++), an improved model upon our conference work, ZITS. Specifically, given one corrupt image, we present the Transformer Structure Restorer (TSR) module to restore holistic structural priors at low image resolution, which are further upsampled by Simple Structure Upsampler (SSU) module to higher image resolution. To recover image texture details, we use the Fourier CNN Texture Restoration (FTR) module, which is strengthened by Fourier and large-kernel attention convolutions. Furthermore, to enhance the FTR, the upsampled structural priors from TSR are further processed by Structure Feature Encoder (SFE) and optimized with the Zero-initialized Residual Addition (ZeroRA) incrementally. Besides, a new masking positional encoding is proposed to encode the large irregular masks. Compared with ZITS, ZITS++ improves the FTR's stability and inpainting ability with several techniques. More importantly, we comprehensively explore the effects of various image priors for inpainting and investigate how to utilize them to address high-resolution image inpainting with extensive experiments. This investigation is orthogonal to most inpainting approaches and can thus significantly benefit the community. Codes and models will be released in https://github.com/ewrfcas/ZITS-PlusPlus.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
ewrfcas/ZITS-PlusPlusOfficial102PythonApache-2.02023-12-17
DQiaole/ZITS_inpaintingCommunity396PythonApache-2.02024-02-23
Apache-2.0

ZITS++: Image Inpainting by Improving the Incremental Transformer on Structural Priors (TPAMI2023)

10211Python, C++May 22, 20232 years agoApache-2.0
Apache-2.0

[CVPR 2022] Incremental Transformer Structure Enhanced Image Inpainting with Masking Positional Encoding

39638Python, JavaScriptMar 2, 20222 years agoApache-2.0

Similar Papers

Cite this paper

@article{cao2022zits,
  title  = {ZITS++: Image Inpainting by Improving the Incremental Transformer on Structural Priors},
  author = {Chenjie Cao and Qiaole Dong and Yanwei Fu},
  year   = {2022},
  eprint = {2210.05950},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.05950}
}

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

Discussion