arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.12382cs.CVcs.AIcs.GR

Lazy Diffusion Transformer 用于交互式图像编辑

Lazy Diffusion Transformer for Interactive Image Editing

Adobe Research(奥多比研究院);Tel-Aviv University(特拉维夫大学)

Yotam Nitzan, Zongze Wu, Richard Zhang, Eli Shechtman, Daniel Cohen-Or, Taesung Park, Michaël Gharbi

AI总结:

提出LazyDiffusion扩散变换器,通过上下文编码器和懒惰解码器仅生成掩码区域,实现高效交互式图像编辑,在保持质量的同时,对典型交互提供10倍加速。

摘要:

我们提出了一种新颖的扩散变换器 LazyDiffusion,能够高效地生成局部图像更新。我们的方法针对交互式图像编辑应用,在这些应用中,用户从空白画布或图像开始,使用二进制掩码和文本提示指定一系列局部图像修改。我们的生成器分两个阶段运行。首先,上下文编码器处理当前画布和用户掩码,以生成针对待生成区域的紧凑全局上下文。其次,在此上下文条件下,基于扩散的变换器解码器以“懒惰”方式合成掩码像素,即仅生成掩码区域。这与之前的工作形成对比,之前的工作要么重新生成整个画布,浪费时间和计算,要么将处理限制在掩码周围的紧密矩形裁剪中,完全忽略全局图像上下文。我们的解码器运行时间随掩码大小缩放,而掩码通常较小,同时我们的编码器引入的开销可忽略不计。我们证明,我们的方法在质量和保真度方面与最先进的修复方法竞争,同时对于典型用户交互(编辑掩码占图像的10%)提供10倍加速。

英文摘要:

We introduce a novel diffusion transformer, LazyDiffusion, that generates partial image updates efficiently. Our approach targets interactive image editing applications in which, starting from a blank canvas or an image, a user specifies a sequence of localized image modifications using binary masks and text prompts. Our generator operates in two phases. First, a context encoder processes the current canvas and user mask to produce a compact global context tailored to the region to generate. Second, conditioned on this context, a diffusion-based transformer decoder synthesizes the masked pixels in a "lazy" fashion, i.e., it only generates the masked region. This contrasts with previous works that either regenerate the full canvas, wasting time and computation, or confine processing to a tight rectangular crop around the mask, ignoring the global image context altogether. Our decoder's runtime scales with the mask size, which is typically small, while our encoder introduces negligible overhead. We demonstrate that our approach is competitive with state-of-the-art inpainting methods in terms of quality and fidelity while providing a 10x speedup for typical user interactions, where the editing mask represents 10% of the image.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑