LooseRoPE:基于内容的注意力操控用于语义和谐化
LooseRoPE: Content-aware Attention Manipulation for Semantic Harmonization
AI总结:
本文提出LooseRoPE,通过松驰旋转位置编码实现无提示图像编辑,平衡对象身份保留与上下文融合,实现无缝合成。
摘要:
近期基于扩散的图像编辑方法通常依赖文本或高级指令引导生成过程,提供直观但粗略的控制。相比之下,我们专注于显式、无提示的编辑,用户通过裁剪和粘贴对象或子对象到图像中选定位置直接指定修改。此操作提供精确的空间和视觉控制,但引入了保留粘贴对象身份并与新上下文和谐化的根本挑战。我们发现扩散编辑模型中的注意力图内在决定了图像区域是否被保留或适应以保持一致性。基于这一见解,我们引入LooseRoPE,一种基于显著性的旋转位置编码(RoPE)调节,松驰位置约束以连续控制注意力视野。通过这种方式松驰RoPE,我们的方法平滑地引导模型的注意力在忠实保留输入图像和插入对象的连贯和谐化之间切换,实现身份保留与上下文融合之间的平衡。我们的方法提供了一种灵活且直观的图像编辑框架,无需文本描述或复杂用户输入即可实现无缝合成。
英文摘要:
Recent diffusion-based image editing methods commonly rely on text or high-level instructions to guide the generation process, offering intuitive but coarse control. In contrast, we focus on explicit, prompt-free editing, where the user directly specifies the modification by cropping and pasting an object or sub-object into a chosen location within an image. This operation affords precise spatial and visual control, yet it introduces a fundamental challenge: preserving the identity of the pasted object while harmonizing it with its new context. We observe that attention maps in diffusion-based editing models inherently govern whether image regions are preserved or adapted for coherence. Building on this insight, we introduce LooseRoPE, a saliency-guided modulation of rotational positional encoding (RoPE) that loosens the positional constraints to continuously control the attention field of view. By relaxing RoPE in this manner, our method smoothly steers the model's focus between faithful preservation of the input image and coherent harmonization of the inserted object, enabling a balanced trade-off between identity retention and contextual blending. Our approach provides a flexible and intuitive framework for image editing, achieving seamless compositional results without textual descriptions or complex user input.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。