通过草图引导的双向特征交互恢复部分损坏的对象
Recovering Partially Corrupted Objects via Sketch-Guided Bidirectional Feature Interaction
AI总结:
针对现有草图引导对象修复方法单向映射导致的结构不匹配问题,提出基于Stable Diffusion的双向特征交互框架,通过上下文-草图双向多尺度交互提升部分损坏对象修复的空间保真度,在新基准上性能超越SOTA。
摘要:
文本引导的扩散模型通过文本提示提供高层语义指导,已在对象修复任务中取得显著成功。然而,这类模型通常缺乏精确的像素级空间控制,尤其是在涉及部分损坏对象的场景中——此类场景下仍留存着关键的未损坏线索。为克服这一局限,研究者引入了草图引导方法,通过间接梯度调制或直接草图注入来提升结构控制能力。但现有方法通常仅建立从草图到掩码区域的单向映射,忽略了来自未掩码对象区域的上下文信息。这会导致草图与未损坏内容之间脱节,进而引发草图引导不一致和结构不匹配的问题。为解决这一挑战,我们提出了一种基于预训练Stable Diffusion模型构建的草图引导双向特征交互框架。我们的双向交互包含两个互补方向:上下文到草图、草图到修复,能够为部分损坏的对象修复提供细粒度的空间控制。在上下文到草图方向中,来自未损坏对象区域的多尺度潜变量被传播到草图分支,以生成视觉掩码,使草图特征适配可见上下文和去噪进程。在草图到修复方向中,草图条件仿射变换基于学习到的视觉掩码调制草图引导的影响,确保与未损坏对象内容的一致性。该交互在扩散U-Net的编码器内的多个尺度上应用,使模型能够以更高的空间保真度恢复对象结构。在两个新构建的基准数据集上开展的大量实验表明,我们的方法性能优于现有最优方法。
英文摘要:
Text-guided diffusion models have achieved remarkable success in object inpainting by providing high-level semantic guidance through text prompts. However, they often lack precise pixel-level spatial control, especially in scenarios involving partially corrupted objects where critical uncorrupted cues remain. To overcome this limitation, sketch-guided methods have been introduced, using either indirect gradient modulation or direct sketch injection to improve structural control. Yet, existing approaches typically establish a one-way mapping from the sketch to the masked regions only, neglecting the contextual information from unmasked object areas. This leads to a disconnection between the sketch and the uncorrupted content, thereby causing sketch-guided inconsistency and structural mismatch. To tackle this challenge, we propose a sketch-guided bidirectional feature interaction framework built upon a pretrained Stable Diffusion model. Our bidirectional interaction features two complementary directions, context-to-sketch and sketch-to-inpainting, that enable fine-grained spatial control for partially corrupted object inpainting. In the context-to-sketch direction, multi-scale latents from uncorrupted object regions are propagated to the sketch branch to generate a visual mask that adapts the sketch features to the visible context and denoising progress. In the sketch-to-inpainting direction, a sketch-conditional affine transformation modulates the influence of sketch guidance based on the learned visual mask, ensuring consistency with uncorrupted object content. This interaction is applied at multiple scales within the encoder of the diffusion U-Net, enabling the model to restore object structures with enhanced spatial fidelity. Extensive experiments on two newly constructed benchmark datasets demonstrate that our approach outperforms state-of-the-art methods.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。