arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.02583cs.CVcs.LG

DiffEditor:提升基于扩散模型的图像编辑的准确性与灵活性

DiffEditor: Boosting Accuracy and Flexibility on Diffusion-based Image Editing

Tencent PCG(腾讯平台与内容事业群);Peking University(北京大学)

Chong Mou, Xintao Wang, Jiechong Song, Ying Shan, Jian Zhang

AI总结:

提出DiffEditor,通过引入图像提示、局部SDE-ODE结合采样及区域梯度引导,提升扩散模型图像编辑的准确性和灵活性,在多种细粒度编辑任务上达到最先进性能。

摘要:

大规模文本到图像(T2I)扩散模型在过去几年中彻底改变了图像生成领域。尽管这些模型拥有多样且高质量的生成能力,但将这些能力转化为细粒度图像编辑仍然具有挑战性。在本文中,我们提出DiffEditor来纠正现有基于扩散模型的图像编辑中的两个弱点:(1)在复杂场景中,编辑结果往往缺乏编辑准确性并出现意外伪影;(2)缺乏协调编辑操作的灵活性,例如想象新内容。在我们的解决方案中,我们在细粒度图像编辑中引入图像提示,与文本提示协同以更好地描述编辑内容。为了在保持内容一致性的同时提高灵活性,我们将随机微分方程(SDE)局部结合到常微分方程(ODE)采样中。此外,我们将基于区域的分数梯度引导和时间旅行策略纳入扩散采样,进一步提高编辑质量。大量实验表明,我们的方法能够在各种细粒度图像编辑任务中高效实现最先进的性能,包括单图像内编辑(如对象移动、调整大小和内容拖拽)以及跨图像编辑(如外观替换和对象粘贴)。我们的源代码发布在https://github.com/MC-E/DragonDiffusion。

英文摘要:

Large-scale Text-to-Image (T2I) diffusion models have revolutionized image generation over the last few years. Although owning diverse and high-quality generation capabilities, translating these abilities to fine-grained image editing remains challenging. In this paper, we propose DiffEditor to rectify two weaknesses in existing diffusion-based image editing: (1) in complex scenarios, editing results often lack editing accuracy and exhibit unexpected artifacts; (2) lack of flexibility to harmonize editing operations, e.g., imagine new content. In our solution, we introduce image prompts in fine-grained image editing, cooperating with the text prompt to better describe the editing content. To increase the flexibility while maintaining content consistency, we locally combine stochastic differential equation (SDE) into the ordinary differential equation (ODE) sampling. In addition, we incorporate regional score-based gradient guidance and a time travel strategy into the diffusion sampling, further improving the editing quality. Extensive experiments demonstrate that our method can efficiently achieve state-of-the-art performance on various fine-grained image editing tasks, including editing within a single image (e.g., object moving, resizing, and content dragging) and across images (e.g., appearance replacing and object pasting). Our source code is released at https://github.com/MC-E/DragonDiffusion.

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

↑