arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2203.00867cs.CV
收藏

增量式Transformer结构增强的掩蔽位置编码图像图像修补

Incremental Transformer Structure Enhanced Image Inpainting with Masking Positional Encoding

Fudan University(复旦大学)

Qiaole Dong, Chenjie Cao, Yanwei Fu

摘要:

图像修补在近年来取得了显著的进展。然而,如何恢复出纹理逼真、结构合理的图像仍然是一个挑战。由于卷积神经网络(CNN)的有限感受野,一些特定的方法只能处理规则的纹理,而失去整体结构。另一方面,基于注意力的模型可以学习更好的长距离依赖性,用于结构恢复,但它们受到大图像尺寸的推理的繁重计算的限制。为了解决这些问题,我们建议利用一个额外的结构恢复,以促进图像修补增量。该模型在固定的低分辨率草图空间中使用基于注意力的Transformer模型恢复整体图像结构。这样的灰度空间很容易被上采样到更大的尺度,以传达正确的结构信息。我们的结构恢复器可以有效地与其他预训练的修复模型集成,并具有零初始化的残差加法。此外,掩蔽位置编码策略被用来提高性能与大的不规则的面具。在各种数据集上的大量实验验证了我们的模型与其他竞争对手相比的有效性。我们的代码发布在https://github.com/DQiaole/ZITS_inpainting。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑