Skip to main content
QUICK REVIEW

[论文解读] One Model to Edit Them All: Free-Form Text-Driven Image Manipulation with Semantic Modulations

Yiming Zhu, Hongyu Liu|arXiv (Cornell University)|Oct 14, 2022
Generative Adversarial Networks and Image SynthesisComputer Science被引用 17
一句话总结

本文提出FFCLIP,一种无需微调即可通过交叉注意力机制实现CLIP文本嵌入到StyleGAN潜在空间自动映射的自由形式文本驱动图像编辑方法,使单一模型能够处理多样化的文本提示。该方法在人物肖像、汽车和教堂图像的语义准确率与视觉质量方面均达到当前最先进水平。

ABSTRACT

Free-form text prompts allow users to describe their intentions during image manipulation conveniently. Based on the visual latent space of StyleGAN[21] and text embedding space of CLIP[34], studies focus on how to map these two latent spaces for text-driven attribute manipulations. Currently, the latent mapping between these two spaces is empirically designed and confines that each manipulation model can only handle one fixed text prompt. In this paper, we propose a method named Free-Form CLIP (FFCLIP), aiming to establish an automatic latent mapping so that one manipulation model handles free-form text prompts. Our FFCLIP has a cross-modality semantic modulation module containing semantic alignment and injection. The semantic alignment performs the automatic latent mapping via linear transformations with a cross attention mechanism. After alignment, we inject semantics from text prompt embeddings to the StyleGAN latent space. For one type of image (e.g., `human portrait'), one FFCLIP model can be learned to handle free-form text prompts. Meanwhile, we observe that although each training text prompt only contains a single semantic meaning, FFCLIP can leverage text prompts with multiple semantic meanings for image manipulation. In the experiments, we evaluate FFCLIP on three types of images (i.e., `human portraits', `cars', and `churches'). Both visual and numerical results show that FFCLIP effectively produces semantically accurate and visually realistic images. Project page: https://github.com/KumapowerLIU/FFCLIP.

研究动机与目标

  • 解决现有方法在文本驱动图像编辑中需为每个固定文本提示训练独立模型的局限性。
  • 实现单一编辑模型在无需微调或手动设计潜在空间映射的情况下,处理自由形式且多样的文本提示。
  • 利用交叉注意力机制自动学习CLIP文本嵌入空间与StyleGAN视觉潜在空间之间的对应关系。
  • 通过动态对齐并注入文本语义至相关潜在子空间,提升图像编辑的语义精确度与视觉真实感。

提出的方法

  • 引入一种跨模态语义调制模块,通过在通道和空间维度上使用交叉注意力,将CLIP文本嵌入与StyleGAN潜在码$w$对齐。
  • 应用可学习的线性变换(含缩放与平移参数)将文本嵌入映射至StyleGAN潜在空间的特定子空间。
  • 通过多个语义调制模块的渐进式优化,生成潜在码偏移$\Delta w$以实现精确编辑。
  • 以端到端可学习的对齐过程替代经验性分组选择或手动编辑方向设计,基于注意力图实现。
  • 通过可学习的线性变换将调制后的语义注入潜在码,类似HairCLIP的方法,但泛化至自由形式提示。
  • 为每个图像领域(如人物肖像、汽车)训练一个FFCLIP模型,以在推理阶段支持单个提示下的多种语义含义。

实验结果

研究问题

  • RQ1单一模型是否能在不微调的情况下,将任意自由形式文本提示自动映射至StyleGAN潜在空间的相关潜在子空间?
  • RQ2通过交叉注意力实现的自动潜在空间映射是否相比经验性或手动设计的映射方式,能提升语义准确率?
  • RQ3在仅使用单义提示进行训练的模型,是否能在推理阶段泛化至包含复杂多语义的提示进行图像编辑?
  • RQ4FFCLIP在多样化图像类别中生成视觉逼真且语义准确的编辑结果方面,相较于SOTA方法表现如何?

主要发现

  • FFCLIP在三个基准数据集(人物肖像、汽车、教堂)上均实现了视觉质量与语义准确率的最先进性能。
  • 即使在仅使用单义提示(如'Blue')进行训练的情况下,模型仍能有效泛化至自由形式提示,如'Black from sixties'或'Beard bond mohawk hair'。
  • 基于交叉注意力的语义对齐模块通过学习自适应、上下文感知的映射,优于经验性分组选择与手动编辑方向方法。
  • 通过多个调制模块对潜在码偏移$\Delta w$进行渐进式优化,显著提升了编辑精度与视觉保真度。
  • 定量评估显示,FFCLIP在所有测试图像类别中,FID与CLIP-IoU指标均优于TediGAN、StyleCLIP与HairCLIP。
  • 该方法对多样化语义组合表现出强鲁棒性,表明潜在空间映射具有语义意义且具备良好的泛化能力。

阅读本论文

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

在 Nubint 中阅读本论文

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