Incremental Transformer Structure Enhanced Image Inpainting with Masking Positional Encoding
Qiaole Dong, Chenjie Cao, Yanwei Fu
Abstract
Image inpainting has made significant advances in recent years. However, it is still challenging to recover corrupted images with both vivid textures and reasonable structures. Some specific methods only tackle regular textures while losing holistic structures due to the limited receptive fields of convolutional neural networks (CNNs). On the other hand, attention-based models can learn better long-range dependency for the structure recovery, but they are limited by the heavy computation for inference with large image sizes. To address these issues, we propose to leverage an additional structure restorer to facilitate the image inpainting incrementally. The proposed model restores holistic image structures with a powerful attention-based transformer model in a fixed low-resolution sketch space. Such a grayscale space is easy to be upsampled to larger scales to convey correct structural information. Our structure restorer can be integrated with other pretrained inpainting models efficiently with the zero-initialized residual addition. Furthermore, a masking positional encoding strategy is utilized to improve the performance with large irregular masks. Extensive experiments on various datasets validate the efficacy of our model compared with other competitors. Our codes are released in https://github.com/DQiaole/ZITS_inpainting.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers37
- CoordFill: Efficient High-Resolution Image Inpainting via Parameterized Coordinate QueryingWeihuang Liu, Xiaodong Cun, Chi-Man Pun, Menghan Xia et al.AAAI 2023 · 71 citations
- Continuously Masked Transformer for Image InpaintingKeunsoo Ko, Chang-Su KimICCV 2023 · 54 citations
- MI-GAN: A Simple Baseline for Image Inpainting on Mobile DevicesAndranik Sargsyan, Shant Navasardyan, Xingqian Xu, Humphrey ShiICCV 2023 · 40 citations
- Generative Image Inpainting with Segmentation Confusion Adversarial Training and Contrastive LearningZhiwen Zuo, Lei Zhao, Ailin Li, Zhizhong Wang et al.AAAI 2023 · 36 citations
- BVINet: Unlocking Blind Video Inpainting With Zero AnnotationsZhiliang Wu, Kerui Chen, Kun Li, Hehe Fan et al.ICCV 2025 · 30 citations
Builds on22
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
- Zero-Shot Text-to-Image GenerationAditya Ramesh, Mikhail Pavlov, Gabriel Goh, Scott Gray et al.ICML 2021 · 6,356 citations
- Free-Form Image Inpainting With Gated ConvolutionJiahui Yu, Zhe Lin, Jimei Yang, Xiaohui Shen et al.ICCV 2019 · 1,990 citations
- Generative Pretraining From PixelsMark Chen, Alec Radford, Rewon Child, Jeffrey Wu et al.ICML 2020 · 1,773 citations
- On Layer Normalization in the Transformer ArchitectureRuibin Xiong, Yunchang Yang, Di He, Kai Zheng et al.ICML 2020 · 1,388 citations
Related papers
- Delving Globally into Texture and Structure for Image InpaintingHaipeng Liu, Yang Wang, Meng Wang, Yong RuiACM MM 2022 · 26 citations
- Atrous Pyramid Transformer with Spectral Convolution for Image InpaintingMuqi Huang, Lefei ZhangACM MM 2022 · 11 citations
- Learning Contextual Transformer Network for Image InpaintingYe Deng, Siqi Hui, Sanping Zhou, Deyu Meng et al.ACM MM 2021 · 29 citations
- T-former: An Efficient Transformer for Image InpaintingYe Deng, Siqi Hui, Sanping Zhou, Deyu Meng et al.ACM MM 2022 · 58 citations
- SyFormer: Structure-Guided Synergism Transformer for Large-Portion Image InpaintingJie Wu, Yuchao Feng, Honghui Xu, Chuanmeng Zhu et al.AAAI 2024 · 14 citations
