[论文解读] Generative Image Inpainting with Segmentation Confusion Adversarial Training and Contrastive Learning
本文提出了一种用于图像修复的新型对抗性训练框架,结合了分割混淆对抗训练(SCAT)与对比学习,以实现全局一致性、局部纹理保真度以及对自由形状孔洞的灵活性。通过训练生成器以欺骗分割网络,并利用对比损失将特征与真实标签对齐,该方法在Places2和CelebA数据集上的定性和定量评估中均优于当前最先进模型。
This paper presents a new adversarial training framework for image inpainting with segmentation confusion adversarial training (SCAT) and contrastive learning. SCAT plays an adversarial game between an inpainting generator and a segmentation network, which provides pixel-level local training signals and can adapt to images with free-form holes. By combining SCAT with standard global adversarial training, the new adversarial training framework exhibits the following three advantages simultaneously: (1) the global consistency of the repaired image, (2) the local fine texture details of the repaired image, and (3) the flexibility of handling images with free-form holes. Moreover, we propose the textural and semantic contrastive learning losses to stabilize and improve our inpainting model's training by exploiting the feature representation space of the discriminator, in which the inpainting images are pulled closer to the ground truth images but pushed farther from the corrupted images. The proposed contrastive losses better guide the repaired images to move from the corrupted image data points to the real image data points in the feature representation space, resulting in more realistic completed images. We conduct extensive experiments on two benchmark datasets, demonstrating our model's effectiveness and superiority both qualitatively and quantitatively.
研究动机与目标
- 解决现有基于GAN的修复方法在同时实现全局一致性、局部纹理细节和自由形状孔洞灵活性方面存在的局限性。
- 开发一种像素级对抗性训练信号,以增强局部真实感,且不依赖于固定尺寸的块判别器。
- 通过利用修复图像、真实图像与损坏图像之间的特征空间对比学习,稳定并提升训练过程。
- 使模型能够泛化至多样化的孔洞形状与大小,同时保持语义与结构一致性。
提出的方法
- 提出分割混淆对抗训练(SCAT),其中分割网络用于区分真实与生成的图像区域,迫使生成器产生更具真实感的局部细节。
- 将SCAT与全局图像级对抗训练相结合,联合优化全局结构与局部纹理保真度。
- 提出纹理对比学习,将生成图像的特征表示在判别器的特征空间中拉近至真实图像的特征表示。
- 引入语义对比学习,将生成图像的特征表示从损坏(输入)图像的特征表示中推开,以增强语义一致性。
- 利用判别器的中间特征作为对比学习的表示空间,提升特征质量且无需额外参数。
- 采用谱归一化与PatchGAN风格的判别器,以稳定训练并支持自由形状孔洞修复。
实验结果
研究问题
- RQ1能否将分割网络用作像素级判别器,以提升图像修复中的局部纹理细节?
- RQ2能否在判别器的特征空间中应用对比学习,以提升修复图像的真实感与一致性?
- RQ3能否将SCAT与对比学习与全局对抗训练相结合,以同时实现全局连贯性、局部细节与自由形状孔洞泛化?
- RQ4所提出的框架在标准基准数据集上的定性与定量性能方面,相较于最先进方法表现如何?
主要发现
- 所提方法在Places2与CelebA数据集上均达到最先进性能,所有掩码比率下的FID分数均有显著提升。
- 在Places2数据集上,该方法优于先前最先进模型(如LaMa、CoModGAN与WaveFill),尤其在保持大尺度结构细节与减少伪影方面表现更优。
- 在CelebA数据集上,与DeepFillv2和CTSDG相比,该模型生成的面部特征更具真实感,且在眼睛、耳朵与头发等区域的局部伪影更少。
- 消融实验表明,SCAT、纹理对比学习与语义对比学习各组件均独立贡献于性能提升,完整模型达到最佳效果。
- SCAT与对比学习的结合带来了更稳定的训练过程与更优的特征空间对齐,表现为FID与LPIPS指标的改善。
- 定性结果表明,该模型能有效处理大而不规则的孔洞,同时保持语义与结构的合理性。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。