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

GLaMa:一般图像修补的联合空间和频率损失

GLaMa: Joint Spatial and Frequency Loss for General Image Inpainting

Harbin Institute of Technology(哈尔滨工业大学);Beihang University(北京航空航天大学)

Zeyu Lu, Junjun Jiang, Junqin Huang, Gang Wu, Xianming Liu

摘要:

图像修补的目的是使用来自剩余部分的上下文信息来恢复划痕和损坏区域。近年来,由于卷积神经网络(CNN)的兴起,图像修补任务取得了很大的突破。然而,大多数工作考虑的掩模类型不足,当遇到不可见的掩模时,它们的性能会急剧下降。为了应对这些挑战,我们提出了一个简单而通用的方法来解决这个问题的基础上的LaMa图像修补框架,被称为GLaMa。我们提出的GLaMa可以通过使用更多类型的掩码来更好地捕获不同类型的缺失信息。通过在训练阶段引入更多的退化图像,我们可以期望增强模型对各种掩模的鲁棒性。为了得到更合理的结果,除了传统的空间重建损失和对抗损失之外,我们还引入了基于频率的损失。特别地,我们在空间域和频域中引入了有效的重建损失,以减少重建图像中的棋盘效应和波纹。大量的实验表明,我们的方法可以提高性能比原来的LaMa方法为每种类型的面具FFHQ,ImageNet,Places2和WikiArt数据集。GLaMa算法在NTIRE 2022图像修补挑战赛第一轮无监督测试中获得了PSNR、LPIPS和SSIM的第一名。

英文摘要:

The purpose of image inpainting is to recover scratches and damaged areas using context information from remaining parts. In recent years, thanks to the resurgence of convolutional neural networks (CNNs), image inpainting task has made great breakthroughs. However, most of the work consider insufficient types of mask, and their performance will drop dramatically when encountering unseen masks. To combat these challenges, we propose a simple yet general method to solve this problem based on the LaMa image inpainting framework, dubbed GLaMa. Our proposed GLaMa can better capture different types of missing information by using more types of masks. By incorporating more degraded images in the training phase, we can expect to enhance the robustness of the model with respect to various masks. In order to yield more reasonable results, we further introduce a frequency-based loss in addition to the traditional spatial reconstruction loss and adversarial loss. In particular, we introduce an effective reconstruction loss both in the spatial and frequency domain to reduce the chessboard effect and ripples in the reconstructed image. Extensive experiments demonstrate that our method can boost the performance over the original LaMa method for each type of mask on FFHQ, ImageNet, Places2 and WikiArt dataset. The proposed GLaMa was ranked first in terms of PSNR, LPIPS and SSIM in the NTIRE 2022 Image Inpainting Challenge Track 1 Unsupervised.

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

↑