arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.14430cs.CVcs.GRcs.LG
收藏

Stable Flow:用于免训练图像编辑的关键层

Stable Flow: Vital Layers for Training-Free Image Editing

Snap Research;The Hebrew University of Jerusalem(耶路撒冷希伯来大学);Tel Aviv University(特拉维夫大学);Reichman University(里赫曼大学)

Omri Avrahami, Or Patashnik, Ohad Fried, Egor Nemchinov, Kfir Aberman, Dani Lischinski, Daniel Cohen-Or

AI总结:

本文提出Stable Flow方法,利用扩散Transformer的有限生成多样性,通过自动识别关键层并选择性注入注意力特征,实现免训练的稳定图像编辑,涵盖非刚性修改和对象添加等应用。

摘要:

扩散模型已经彻底改变了内容合成和编辑领域。最近的模型用扩散Transformer(DiT)取代了传统的UNet架构,并采用流匹配(flow-matching)来改进训练和采样。然而,这些模型表现出有限的生成多样性。在这项工作中,我们利用这一局限性,通过选择性注入注意力特征来实现一致的图像编辑。主要挑战在于,与基于UNet的模型不同,DiT缺乏从粗到细的合成结构,使得在哪些层进行注入变得不明确。因此,我们提出了一种自动方法来识别DiT中对于图像形成至关重要的“关键层”,并展示了这些层如何通过相同的机制促进一系列受控的稳定编辑,从非刚性修改到对象添加。接下来,为了实现真实图像编辑,我们引入了一种改进的流模型图像反演方法。最后,我们通过定性和定量比较以及用户研究来评估我们的方法,并展示了其在多种应用中的有效性。项目页面可在https://omriavrahami.com/stable-flow获取。

英文摘要:

Diffusion models have revolutionized the field of content synthesis and editing. Recent models have replaced the traditional UNet architecture with the Diffusion Transformer (DiT), and employed flow-matching for improved training and sampling. However, they exhibit limited generation diversity. In this work, we leverage this limitation to perform consistent image edits via selective injection of attention features. The main challenge is that, unlike the UNet-based models, DiT lacks a coarse-to-fine synthesis structure, making it unclear in which layers to perform the injection. Therefore, we propose an automatic method to identify "vital layers" within DiT, crucial for image formation, and demonstrate how these layers facilitate a range of controlled stable edits, from non-rigid modifications to object addition, using the same mechanism. Next, to enable real-image editing, we introduce an improved image inversion method for flow models. Finally, we evaluate our approach through qualitative and quantitative comparisons, along with a user study, and demonstrate its effectiveness across multiple applications. The project page is available at https://omriavrahami.com/stable-flow

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

↑