[论文解读] MasaCtrl: Tuning-Free Mutual Self-Attention Control for Consistent Image Synthesis and Editing
MasaCtrl 引入一种无需微调的方式,将自注意力在扩散过程中转换为互为自注意,从而实现一致的图像生成与复杂的非刚性编辑,包括用于降低前景/背景混淆的掩码引导变体。
Despite the success in large-scale text-to-image generation and text-conditioned image editing, existing methods still struggle to produce consistent generation and editing results. For example, generation approaches usually fail to synthesize multiple images of the same objects/characters but with different views or poses. Meanwhile, existing editing methods either fail to achieve effective complex non-rigid editing while maintaining the overall textures and identity, or require time-consuming fine-tuning to capture the image-specific appearance. In this paper, we develop MasaCtrl, a tuning-free method to achieve consistent image generation and complex non-rigid image editing simultaneously. Specifically, MasaCtrl converts existing self-attention in diffusion models into mutual self-attention, so that it can query correlated local contents and textures from source images for consistency. To further alleviate the query confusion between foreground and background, we propose a mask-guided mutual self-attention strategy, where the mask can be easily extracted from the cross-attention maps. Extensive experiments show that the proposed MasaCtrl can produce impressive results in both consistent image generation and complex non-rigid real image editing.
研究动机与目标
- 解决在同一对象/场景的多视角一致生成方面的空白
- 在不对扩散模型进行微调的情况下实现复杂的非刚性图像编辑
- 在允许目标姿态/结构变化的同时保持源内容的纹理和身份
- 通过掩码引导的互自注意降低前景-背景查询混淆
- 提供可与受控扩散模型无缝集成的方案,以提高保真度
提出的方法
- 将扩散模型中的现有自注意力转换为互自注意,以在去噪期间从源图像查询内容
- 利用源扩散过程中的源图像特征通过跨注意在扩 diffusion 步骤和层之间影响目标图像
- 应用时间步与层位置控制,以在利用目标提示的同时实现一致的合成与编辑
- 引入掩码引导的互自注意,通过来自跨注意映射的掩码将前景与背景分离
- 便于与可控扩散框架如 T2I-Adapter 或 ControlNet 的集成,以提升编辑保真度
实验结果
研究问题
- RQ1如何重新表述自注意力以从源图像查询内容,从而实现一致的编辑与合成?
- RQ2无需微调的互自注意是否能在实现目标姿态/视角变化的同时保留源纹理与身份?
- RQ3掩码引导的互自注意是否通过从跨注意图中导出掩码来降低前景-背景查询混淆?
- RQ4MasaCtrl 是否可以与现有的可控扩散工具集成,以提升非刚性编辑的保真度?
- RQ5在前景与背景具有相似模式的情况下,互自注意的局限性是什么?
主要发现
- MasaCtrl 在不进行微调的情况下实现了保持一致的图像生成和复杂的非刚性编辑
- 互自注意允许查询源图像内容,在采用目标姿态或视角的同时保持纹理和身份
- 通过从跨注意映射导出掩码,掩码引导的互自注意降低了前景-背景查询混淆
- 该方法可与可控扩散系统集成,以进一步提升合成与编辑保真度
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。