arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.10210cs.CVcs.AIcs.GR
收藏

让数量准确:具有精确对象数量的文本到图像生成

Make It Count: Text-to-Image Generation with an Accurate Number of Objects

Bar-Ilan University(巴伊兰大学);NVIDIA(英伟达);Tel-Aviv University(特拉维夫大学)

Lital Binyamin, Yoad Tewel, Hilit Segev, Eran Hirsch, Royi Rassin, Gal Chechik

AI总结:

本文提出 CountGen 方法,通过利用扩散模型内部特征分离并计数对象实例,检测并修正生成不足,从而在文本到图像生成中实现精确的对象数量控制。

摘要:

尽管文本到图像扩散模型取得了前所未有的成功,但通过文本控制所描绘对象的数量却出人意料地困难。这对于从技术文档、儿童书籍到烹饪食谱插图等各种应用都很重要。生成对象数量正确的图像具有根本性挑战,因为生成模型需要为对象的每个实例保持独立的身份感,即使多个对象看起来相同或重叠,然后在生成过程中隐式地执行全局计算。目前仍不清楚这种表示是否存在。为了解决数量正确的生成问题,我们首先识别扩散模型中能够携带对象身份信息的特征。然后,我们利用这些特征在去噪过程中分离并计数对象实例,并检测过度生成和生成不足。我们通过训练一个模型来修复后者,该模型基于现有对象的布局预测缺失对象的形状和位置,并展示如何利用它来引导去噪过程以获得正确的对象数量。我们的方法 CountGen 不依赖外部来源来确定对象布局,而是利用扩散模型自身的先验,创建依赖于提示和种子的布局。在两个基准数据集上的评估表明,CountGen 在计数准确性上显著优于现有基线方法。

英文摘要:

Despite the unprecedented success of text-to-image diffusion models, controlling the number of depicted objects using text is surprisingly hard. This is important for various applications from technical documents, to children's books to illustrating cooking recipes. Generating object-correct counts is fundamentally challenging because the generative model needs to keep a sense of separate identity for every instance of the object, even if several objects look identical or overlap, and then carry out a global computation implicitly during generation. It is still unknown if such representations exist. To address count-correct generation, we first identify features within the diffusion model that can carry the object identity information. We then use them to separate and count instances of objects during the denoising process and detect over-generation and under-generation. We fix the latter by training a model that predicts both the shape and location of a missing object, based on the layout of existing ones, and show how it can be used to guide denoising with correct object count. Our approach, CountGen, does not depend on external source to determine object layout, but rather uses the prior from the diffusion model itself, creating prompt-dependent and seed-dependent layouts. Evaluated on two benchmark datasets, we find that CountGen strongly outperforms the count-accuracy of existing baselines.

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

↑