基于内外注意力的形状引导扩散模型
Shape-Guided Diffusion with Inside-Outside Attention
AI总结:
本文提出形状引导扩散模型,通过免训练的内外注意力机制将物体轮廓约束应用于注意力图,在基于MS-COCO的ShapePrompts基准上实现形状忠实度的SOTA结果,且不损失文本对齐和图像真实感。
摘要:
我们将精确的物体轮廓作为文本到图像扩散模型中的一种新型用户控制形式引入,并将其命名为形状引导扩散(Shape-Guided Diffusion)。我们的免训练方法在反演和生成过程中使用一种内外注意力(Inside-Outside Attention)机制,对交叉注意力和自注意力图施加形状约束。该机制指定哪些空间区域是物体(内部)与背景(外部),然后将编辑关联到正确的区域。我们在形状引导编辑任务上证明了方法的有效性,该任务要求模型根据文本提示和物体掩码替换物体。我们基于MS-COCO构建了一个新的ShapePrompts基准,并在形状忠实度上取得了SOTA结果,同时根据自动指标和标注者评分,文本对齐度和图像真实感均未出现退化。我们的数据和代码将在https://shape-guided-diffusion.github.io上公开。
英文摘要:
We introduce precise object silhouette as a new form of user control in text-to-image diffusion models, which we dub Shape-Guided Diffusion. Our training-free method uses an Inside-Outside Attention mechanism during the inversion and generation process to apply a shape constraint to the cross- and self-attention maps. Our mechanism designates which spatial region is the object (inside) vs. background (outside) then associates edits to the correct region. We demonstrate the efficacy of our method on the shape-guided editing task, where the model must replace an object according to a text prompt and object mask. We curate a new ShapePrompts benchmark derived from MS-COCO and achieve SOTA results in shape faithfulness without a degradation in text alignment or image realism according to both automatic metrics and annotator ratings. Our data and code will be made available at https://shape-guided-diffusion.github.io.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。