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

Diffree:基于扩散模型的文本引导无形状物体修复

Diffree: Text-Guided Shape Free Object Inpainting with Diffusion Model

OpenGVLab(开放视觉实验室);Shanghai AI Laboratory(上海人工智能实验室);The University of Hong Kong(香港大学);Xiamen University(厦门大学)

Lirui Zhao, Tianshuo Yang, Wenqi Shao, Yuxin Zhang, Yu Qiao, Ping Luo, Kaipeng Zhang, Rongrong Ji

AI总结:

本文提出 Diffree 模型,通过构建 OABench 数据集并利用 Stable Diffusion 与掩码预测模块,实现仅凭文本引导即可自动预测位置并无缝添加物体,同时保持背景一致性。

摘要:

本文解决了仅凭文本引导为图像添加物体的重要问题。该任务极具挑战性,因为新物体必须无缝融入图像,并保持光照、纹理和空间位置等视觉上下文的一致性。现有的文本引导图像修复方法虽能添加物体,但要么无法保持背景一致性,要么需要繁琐的人工干预来指定边界框或用户涂抹的掩码。为应对这一挑战,我们提出了 Diffree,一种仅通过文本控制即可实现文本引导物体添加的文本到图像(T2I)模型。为此,我们精心构建了 OABench,这是一个通过先进图像修复技术移除物体而合成的精美数据集。OABench 包含 74K 个真实世界的元组,每个元组包含原始图像、移除物体后的修复图像、物体掩码和物体描述。通过在 OABench 上使用 Stable Diffusion 模型并附加一个掩码预测模块进行训练,Diffree 能够独特地预测新物体的位置,并在仅凭文本引导下实现物体添加。大量实验表明,Diffree 在添加新物体方面表现出色,具有高成功率,同时保持了背景一致性、空间合理性以及物体的相关性和质量。

英文摘要:

This paper addresses an important problem of object addition for images with only text guidance. It is challenging because the new object must be integrated seamlessly into the image with consistent visual context, such as lighting, texture, and spatial location. While existing text-guided image inpainting methods can add objects, they either fail to preserve the background consistency or involve cumbersome human intervention in specifying bounding boxes or user-scribbled masks. To tackle this challenge, we introduce Diffree, a Text-to-Image (T2I) model that facilitates text-guided object addition with only text control. To this end, we curate OABench, an exquisite synthetic dataset by removing objects with advanced image inpainting techniques. OABench comprises 74K real-world tuples of an original image, an inpainted image with the object removed, an object mask, and object descriptions. Trained on OABench using the Stable Diffusion model with an additional mask prediction module, Diffree uniquely predicts the position of the new object and achieves object addition with guidance from only text. Extensive experiments demonstrate that Diffree excels in adding new objects with a high success rate while maintaining background consistency, spatial appropriateness, and object relevance and quality.

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

↑