Skip to main content
QUICK REVIEW

[论文解读] Negative-prompt Inversion: Fast Image Inversion for Editing with Text-guided Diffusion Models

Daiki Miyake, Akihiro Iohara|arXiv (Cornell University)|May 26, 2023
Advanced Vision and ImagingComputer Science被引用 18
一句话总结

本文提出负提示反演(negative-prompt inversion),基于前向传播的扩散模型图像反演方法,在重建质量接近基于优化的方法的同时实现超过 30x 的加速,从而实现快速编辑。

ABSTRACT

In image editing employing diffusion models, it is crucial to preserve the reconstruction fidelity to the original image while changing its style. Although existing methods ensure reconstruction fidelity through optimization, a drawback of these is the significant amount of time required for optimization. In this paper, we propose negative-prompt inversion, a method capable of achieving equivalent reconstruction solely through forward propagation without optimization, thereby enabling ultrafast editing processes. We experimentally demonstrate that the reconstruction fidelity of our method is comparable to that of existing methods, allowing for inversion at a resolution of 512 pixels and with 50 sampling steps within approximately 5 seconds, which is more than 30 times faster than null-text inversion. Reduction of the computation time by the proposed method further allows us to use a larger number of sampling steps in diffusion models to improve the reconstruction fidelity with a moderate increase in computation time.

研究动机与目标

  • 为扩散模型的编辑提供快速且高保真度的真实图像重建的动机。
  • 在保持与基于优化的方法相当的重建质量的前提下,消除反演中的优化。
  • 通过与现有编辑框架(如 prompt-to-prompt)集成,实现对真实图像的快速编辑。

提出的方法

  • 用 CFG 中的实际提示嵌入替换优化的空文本嵌入,以实现仅向前的重建。
  • 利用 DDIM 反演和 CFG 在不进行反向传播的情况下推导潜在轨迹。
  • 理论证明(附录)最优的空文本嵌入可以被条件文本嵌入 C 近似。
  • 经验显示负提示反演在重建质量上接近空文本反演,但实现约 30x 的加速。
  • 证明与如 prompt-to-prompt 这样的图像编辑方法兼容,以实现快速真实图像编辑。

实验结果

研究问题

  • RQ1在不优化的前提下,是否能够实现高保真度的真实图像重建?
  • RQ2用提示嵌入替换空文本嵌入如何影响重建和编辑质量?
  • RQ3负提示反演、空文本反演与带 CFG 的 DDIM 反演之间在速度和质量上的权衡是什么?
  • RQ4该方法是否与像 prompt-to-prompt 这样的现有编辑流程兼容以进行真实图像编辑?

主要发现

  • 负提示反演在实现前向计算的同时,其重建质量可与空文本反演相媲美。
  • 该方法在 512x512 图像、50 次采样下大约需要 5 秒,相比空文本反演快约 30x。
  • 在带 CFG 的 DDIM 反演下,重建质量仍显著优于该方法。
  • 将负提示反演与如 prompt-to-prompt 的编辑方法结合,可以实现快速真实图像编辑。
  • 进一步增加采样步数可以提高重建质量,同时相对于基于优化的方法保持速度。
  • 反演结果因图像而异,部分失败(尤其是在重建人脸方面)的局限性被讨论。

阅读本论文

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

在 Nubint 中阅读本论文

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