[论文解读] Imagic: Text-Based Real Image Editing with Diffusion Models
Imagic 通过优化文本嵌入、对模型进行微调以及对嵌入进行插值,在单个真实图像上使用预训练扩散模型实现复杂的、非刚性的基于文本的编辑,以平衡保真度和目标文本的一致性。
Text-conditioned image editing has recently attracted considerable interest. However, most methods are currently either limited to specific editing types (e.g., object overlay, style transfer), or apply to synthetically generated images, or require multiple input images of a common object. In this paper we demonstrate, for the very first time, the ability to apply complex (e.g., non-rigid) text-guided semantic edits to a single real image. For example, we can change the posture and composition of one or multiple objects inside an image, while preserving its original characteristics. Our method can make a standing dog sit down or jump, cause a bird to spread its wings, etc. -- each within its single high-resolution natural image provided by the user. Contrary to previous work, our proposed method requires only a single input image and a target text (the desired edit). It operates on real images, and does not require any additional inputs (such as image masks or additional views of the object). Our method, which we call "Imagic", leverages a pre-trained text-to-image diffusion model for this task. It produces a text embedding that aligns with both the input image and the target text, while fine-tuning the diffusion model to capture the image-specific appearance. We demonstrate the quality and versatility of our method on numerous inputs from various domains, showcasing a plethora of high quality complex semantic image edits, all within a single unified framework.
研究动机与目标
- 在无辅助输入的情况下,对单个真实高分辨率图像启用基于文本的语义编辑。
- 实现对目标文本对齐的复杂非刚性编辑(姿态、构图),同时保持图像保真度。
- 展示输入图像表示与目标编辑之间具有语义意义的嵌入插值。
- 引入一个具有挑战性的基准测试(TEdBench)用于评估基于文本的编辑方法。
提出的方法
- 使用预训练的文本到图像扩散模型根据文本提示对真实图像进行编辑。
- 通过去噪目标优化目标文本嵌入以重构输入图像。
- 对扩散模型(及辅助上采样器)进行微调,使其在优化后的嵌入下更好地匹配输入图像。
- 在优化后的图像嵌入与目标文本嵌入之间线性插值,以获得编辑嵌入。
- 在插值嵌入条件下运行扩散过程以生成编辑后的图像;可选地应用超分辨率。
实验结果
研究问题
- RQ1是否可以仅使用一个文本提示和一张输入图像,对单个真实图像应用复杂的非刚性编辑?
- RQ2通过优化文本嵌入和对扩散模型进行微调,是否能够在实现目标文本对齐的同时保持对原始图像的高保真度?
- RQ3在图像表示嵌入与目标编辑嵌入之间进行线性插值在语义上是否对编辑有意义?
- RQ4在具有挑战性的基准测试上,Imagic 相对于现有单图像编辑方法的表现如何?
- RQ5不同编辑强度(eta)对保真度和文本对齐的影响是什么?
主要发现
- Imagic 在实现对复杂编辑的同时,能保持对输入图像的高保真度并与目标文本对齐。
- 该方法能够在单一框架内对真实图像进行姿态和构图等编辑。
- TEdBench 表明人类评审者在编辑质量上更偏好 Imagic 相对 SDEdit、DDIB 和 Text2LIVE(>70% 偏好)。
- 一个三阶段过程(嵌入优化、模型微调和嵌入插值)对获得高质量编辑至关重要。
- 对扩散模型进行微调对于重建输入图像和实现有意义的插值至关重要。
- 该方法在多样化领域中通过 Imagen 与 Stable Diffusion 展示。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。