Skip to main content
QUICK REVIEW

[论文解读] iEdit: Localised Text-guided Image Editing with Weak Supervision

Rumeysa Bodur, Erhan Gündoğdu|arXiv (Cornell University)|May 10, 2023
Generative Adversarial Networks and Image SynthesisComputer Science被引用 3
一句话总结

iEdit 提出了一种基于潜在扩散模型(LDMs)的弱监督方法,用于实现局部化、文本引导的图像编辑,利用从 LAION-5B 自动构建的伪目标图像对以及通过 BLIP 生成的编辑提示。该方法仅使用 200,000 个训练样本和 2 块 V100 GPU,即在图像保真度、CLIP 对齐度和局部化编辑方面达到当前最先进性能。

ABSTRACT

Diffusion models (DMs) can generate realistic images with text guidance using large-scale datasets. However, they demonstrate limited controllability in the output space of the generated images. We propose a novel learning method for text-guided image editing, namely exttt{iEdit}, that generates images conditioned on a source image and a textual edit prompt. As a fully-annotated dataset with target images does not exist, previous approaches perform subject-specific fine-tuning at test time or adopt contrastive learning without a target image, leading to issues on preserving the fidelity of the source image. We propose to automatically construct a dataset derived from LAION-5B, containing pseudo-target images with their descriptive edit prompts given input image-caption pairs. This dataset gives us the flexibility of introducing a weakly-supervised loss function to generate the pseudo-target image from the latent noise of the source image conditioned on the edit prompt. To encourage localised editing and preserve or modify spatial structures in the image, we propose a loss function that uses segmentation masks to guide the editing during training and optionally at inference. Our model is trained on the constructed dataset with 200K samples and constrained GPU resources. It shows favourable results against its counterparts in terms of image fidelity, CLIP alignment score and qualitatively for editing both generated and real images.

研究动机与目标

  • 为解决文本引导图像编辑中完全标注数据集的缺乏问题,此类数据集成本高昂且存在偏差。
  • 在保持源图像保真度的同时,提升图像编辑的可控性和定位能力。
  • 仅使用 200,000 个样本和 2 块 V100 GPU,实现 LDM 的高效、轻量级微调。
  • 开发一种弱监督训练流程,避免在推理阶段依赖特定主体的微调或掩码。
  • 引入掩码感知损失函数,引导编辑聚焦于特定区域,同时保持非编辑区域的完整性。

提出的方法

  • 利用多模态 CLIP 嵌入从 LAION-5B 自动构建弱监督数据集,通过修改 BLIP 生成的字幕来生成图像配对与编辑提示。
  • 使用对比学习损失($\mathcal{L}_{global}$)将编辑提示与生成图像对齐。
  • 引入基于现成分割模型的掩码引导损失($\mathcal{L}_{mask}$),以强化局部化编辑并保护非编辑区域。
  • 应用感知损失($\mathcal{L}_{perc}$)以提升视觉质量和一致性。
  • 采用局部对比学习损失($\mathcal{L}_{loc}$)以增强编辑提示与图像区域之间的对齐。
  • 仅微调 LDM 主干网络的子组件,从而实现在有限硬件(2 块 V100)上的训练。

实验结果

研究问题

  • RQ1能否通过弱监督、自动构建的数据集实现有效的文本引导图像编辑,而无需完全标注的目标图像?
  • RQ2如何在保持非编辑区域语义和结构保真度的前提下,提升图像编辑的定位能力?
  • RQ3在极低 GPU 资源下,轻量级微调的 LDM 能在多大程度上实现与全模型训练相当的性能?
  • RQ4与仅依赖全局对齐相比,在训练中使用分割掩码是否能提升定位精度和编辑准确性?
  • RQ5在真实图像和生成图像作为源图像的情况下,模型在保真度和提示对齐方面的表现如何?

主要发现

  • 在生成图像和真实图像上,iEdit 的 CLIPScore 均高于所有对比方法,表明其与编辑提示的对齐度更优。
  • 在真实图像上,iEdit 在源图像保真度(SSIM- $\overline{M}$)与编辑准确性(CLIPScore)之间实现了最佳平衡,尽管推理时未使用真实掩码,仍优于 DALL-E 2。
  • 消融实验表明,$\mathcal{L}_{mask}$ 显著提升了 CLIPScore 和 FID,而 $\mathcal{L}_{perc}$ 虽仅带来微小但稳定的提升。
  • 在推理时使用预测掩码可显著提升所有指标,证明了空间引导的价值。
  • 仅使用 200,000 个样本和 2 块 V100 GPU 训练的模型,性能优于需要全模型微调或特定主体适应的方法。
  • iEdit 展现出强大的泛化能力,能够以高视觉质量和提示一致性成功编辑真实图像和生成图像。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。