arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.00587cs.CVcs.AI
收藏

通过自动派生数据集改进文本到图像生成中的显式空间关系

Improving Explicit Spatial Relationships in Text-to-Image Generation through an Automatically Derived Dataset

HiTZ Center - Ixa, University of the Basque Country UPV/EHU(巴斯克大学UPV/EHU HiTZ中心 - Ixa);University of Edinburgh(爱丁堡大学)

Ander Salaberria, Gorka Azkune, Oier Lopez de Lacalle, Aitor Soroa, Eneko Agirre, Frank Keller

AI总结:

针对文本到图像模型难以准确表达显式空间关系的问题,本文构建含990万训练对的SR4G自动数据集并微调Stable Diffusion,使VISOR最高提升9分且可泛化至未知物体。

摘要:

现有工作已经观察到,当前的文本到图像系统无法准确反映物体之间诸如“left of(在……左边)”或“below(在……下方)”等显式空间关系。我们假设这是因为用于训练这些模型的图像描述中很少出现显式空间关系。我们提出了一种自动方法,该方法基于现有图像生成包含14种显式空间关系的合成描述。我们介绍了Spatial Relation for Generation(SR4G)数据集,其中包含990万个用于训练的图像-描述对,以及超过6万个用于评估的描述。为了测试泛化能力,我们还提供了一个“unseen”划分,其中训练和测试描述中的物体集合互不相交。SR4G是首个可用于对文本到图像系统进行空间微调的数据集。我们表明,对两个不同的Stable Diffusion模型进行微调(记为SD$_{SR4G}$)可在VISOR指标上带来最高9分的提升。该提升在“unseen”划分中依然保持,表明SD$_{SR4G}$能够泛化到未见过的物体。SD$_{SR4G}$以更少的参数改进了当前最优水平,并避免了复杂架构。我们的分析表明,这种提升在所有关系上都是一致的。数据集和代码将公开发布。

英文摘要:

Existing work has observed that current text-to-image systems do not accurately reflect explicit spatial relations between objects such as 'left of' or 'below'. We hypothesize that this is because explicit spatial relations rarely appear in the image captions used to train these models. We propose an automatic method that, given existing images, generates synthetic captions that contain 14 explicit spatial relations. We introduce the Spatial Relation for Generation (SR4G) dataset, which contains 9.9 millions image-caption pairs for training, and more than 60 thousand captions for evaluation. In order to test generalization we also provide an 'unseen' split, where the set of objects in the train and test captions are disjoint. SR4G is the first dataset that can be used to spatially fine-tune text-to-image systems. We show that fine-tuning two different Stable Diffusion models (denoted as SD$_{SR4G}$) yields up to 9 points improvements in the VISOR metric. The improvement holds in the 'unseen' split, showing that SD$_{SR4G}$ is able to generalize to unseen objects. SD$_{SR4G}$ improves the state-of-the-art with fewer parameters, and avoids complex architectures. Our analysis shows that improvement is consistent for all relations. The dataset and the code will be publicly available.

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

↑