Attentive Eraser:通过自注意力重定向引导释放扩散模型的目标移除潜力
Attentive Eraser: Unleashing Diffusion Model's Object Removal Potential via Self-Attention Redirection Guidance
AI总结:
本文提出免调优方法 Attentive Eraser,通过注意力激活与抑制(ASS)和自注意力重定向引导(SARG)改进预训练扩散模型,实现稳定有效的目标移除,性能优于训练类方法并具备良好可扩展性。
摘要:
近年来,扩散模型作为生成模型领域的新兴方法,在图像生成中表现出色。然而,当用于目标移除任务时,它们仍然面临生成随机伪影以及在移除后无法用合适内容重绘前景目标区域的问题。为了解决这些问题,我们提出了 Attentive Eraser,一种免调优方法,旨在赋予预训练扩散模型稳定且有效的目标移除能力。首先,基于自注意力图影响生成图像结构和形状细节的观察,我们提出了注意力激活与抑制(ASS)方法,该方法根据给定的掩码重新设计预训练扩散模型内部的自注意力机制,从而在反向生成过程中优先考虑背景而非前景目标。此外,我们引入了自注意力重定向引导(SARG),利用由 ASS 重定向的自注意力来引导生成过程,有效移除掩码内的前景目标,同时生成既合理又连贯的内容。实验表明,Attentive Eraser 在多种预训练扩散模型上的目标移除任务中表现出稳定性和有效性,甚至优于基于训练的方法。此外,Attentive Eraser 可以应用于不同的扩散模型架构和检查点,具有出色的可扩展性。代码可在 https://github.com/Anonym0u3/AttentiveEraser 获取。
英文摘要:
Recently, diffusion models have emerged as promising newcomers in the field of generative models, shining brightly in image generation. However, when employed for object removal tasks, they still encounter issues such as generating random artifacts and the incapacity to repaint foreground object areas with appropriate content after removal. To tackle these problems, we propose Attentive Eraser, a tuning-free method to empower pre-trained diffusion models for stable and effective object removal. Firstly, in light of the observation that the self-attention maps influence the structure and shape details of the generated images, we propose Attention Activation and Suppression (ASS), which re-engineers the self-attention mechanism within the pre-trained diffusion models based on the given mask, thereby prioritizing the background over the foreground object during the reverse generation process. Moreover, we introduce Self-Attention Redirection Guidance (SARG), which utilizes the self-attention redirected by ASS to guide the generation process, effectively removing foreground objects within the mask while simultaneously generating content that is both plausible and coherent. Experiments demonstrate the stability and effectiveness of Attentive Eraser in object removal across a variety of pre-trained diffusion models, outperforming even training-based methods. Furthermore, Attentive Eraser can be implemented in various diffusion model architectures and checkpoints, enabling excellent scalability. Code is available at https://github.com/Anonym0u3/AttentiveEraser.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。