arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2307.10816cs.CV
收藏

BoxDiff:采用免训练框约束扩散的文本生成图像合成

BoxDiff: Text-to-Image Synthesis with Training-Free Box-Constrained Diffusion

National University of Singapore(新加坡国立大学);Tencent(腾讯);King Abdullah University of Science and Technology(阿卜杜拉国王科技大学)

Jinheng Xie, Yuexiang Li, Yawen Huang, Haozhe Liu, Wentian Zhang, Yefeng Zheng, Mike Zheng Shou

AI总结:

针对现有文本生成图像扩散模型依赖配对训练数据实现空间控制的问题,提出免训练的BoxDiff方法,通过三种空间约束集成到去噪步骤,在保留生成质量与多样性的同时实现精准空间控制,代码已开源。

摘要:

近期的文本生成图像扩散模型已展现出令人惊叹的高质量图像生成能力。然而,研究人员主要研究仅通过文本提示合成图像的方式。尽管部分工作探索了使用其他模态作为条件,但这类模型需要大量配对数据(如框/掩码-图像对)以及微调时间来训练。由于获取此类配对数据耗时耗力,且局限于封闭集合,这可能成为开放世界场景下应用的瓶颈。本文聚焦于用户提供的最简单形式的条件,例如框或涂鸦。为缓解上述问题,我们提出一种免训练方法,可让合成图像中的物体与背景遵循给定的空间条件。具体而言,我们设计了三种空间约束,即框内约束、框外约束和角点约束,并将其无缝集成到扩散模型的去噪步骤中,无需额外训练和大量带标注的布局数据。大量实验结果表明,所提出的约束能够控制图像中呈现的内容与位置,同时保留扩散模型高保真合成与概念覆盖多样性的能力。代码已公开于https://github.com/showlab/BoxDiff。

英文摘要:

Recent text-to-image diffusion models have demonstrated an astonishing capacity to generate high-quality images. However, researchers mainly studied the way of synthesizing images with only text prompts. While some works have explored using other modalities as conditions, considerable paired data, e.g., box/mask-image pairs, and fine-tuning time are required for nurturing models. As such paired data is time-consuming and labor-intensive to acquire and restricted to a closed set, this potentially becomes the bottleneck for applications in an open world. This paper focuses on the simplest form of user-provided conditions, e.g., box or scribble. To mitigate the aforementioned problem, we propose a training-free method to control objects and contexts in the synthesized images adhering to the given spatial conditions. Specifically, three spatial constraints, i.e., Inner-Box, Outer-Box, and Corner Constraints, are designed and seamlessly integrated into the denoising step of diffusion models, requiring no additional training and massive annotated layout data. Extensive experimental results demonstrate that the proposed constraints can control what and where to present in the images while retaining the ability of Diffusion models to synthesize with high fidelity and diverse concept coverage. The code is publicly available at https://github.com/showlab/BoxDiff.

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

↑