arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2212.05034cs.CV
收藏

SmartBrush:基于扩散模型的文本和形状引导的对象修复

SmartBrush: Text and Shape Guided Object Inpainting with Diffusion Model

Carnegie Mellon University(卡内基梅隆大学);Adobe Research(奥多比研究院);Mohamed bin Zayed University of Artificial Intelligence(穆罕默德·本·扎耶德人工智能大学)

Shaoan Xie, Zhifei Zhang, Zhe Lin, Tobias Hinz, Kun Zhang

摘要:

通用图像修补的目的是通过借用周围的信息来完成损坏的图像,这几乎不会产生新的内容。相比之下,多模态修复提供了对修复内容\eg的更灵活和有用的控制,文本提示可用于描述具有更丰富属性的对象,并且遮罩可用于约束修复对象的形状,而不是仅被视为缺失区域。我们提出了一个新的扩散为基础的模型,名为SmartBrush完成一个丢失的区域与一个对象使用文本和形状指导。虽然以前的工作,如DALLE-2和稳定扩散可以做文本引导的inapinting,但它们不支持形状指导,并且倾向于修改生成对象周围的背景纹理。我们的模型结合了文本和形状引导以及精确控制。为了更好地保留背景,我们提出了一种新的训练和采样策略,通过对象掩模预测来增强扩散U-网络。最后,我们引入了一种多任务训练策略,通过联合训练图像修复与文本到图像生成来利用更多的训练数据。我们进行了大量的实验,表明我们的模型在视觉质量,掩模可控性和背景保护方面优于所有基线。

英文摘要:

Generic image inpainting aims to complete a corrupted image by borrowing surrounding information, which barely generates novel content. By contrast, multi-modal inpainting provides more flexible and useful controls on the inpainted content, \eg, a text prompt can be used to describe an object with richer attributes, and a mask can be used to constrain the shape of the inpainted object rather than being only considered as a missing area. We propose a new diffusion-based model named SmartBrush for completing a missing region with an object using both text and shape-guidance. While previous work such as DALLE-2 and Stable Diffusion can do text-guided inapinting they do not support shape guidance and tend to modify background texture surrounding the generated object. Our model incorporates both text and shape guidance with precision control. To preserve the background better, we propose a novel training and sampling strategy by augmenting the diffusion U-net with object-mask prediction. Lastly, we introduce a multi-task training strategy by jointly training inpainting with text-to-image generation to leverage more training data. We conduct extensive experiments showing that our model outperforms all baselines in terms of visual quality, mask controllability, and background preservation.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑