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

面向高保真文本到图像合成的计数引导

Counting Guidance for High Fidelity Text-to-Image Synthesis

Seoul National University(首尔大学);FuriosaAI(富里奥萨AI公司);Ajou University(亚洲大学)

Wonjun Kang, Kevin Galim, Hyung Il Koo, Nam Ik Cho

AI总结:

本文提出一种计数引导方法,通过引入无需参考的类无关计数网络计算梯度并细化每步预测噪声,结合注意力图引导获取高质量物体掩膜,显著提升了扩散模型生成精确物体数量的能力。

摘要:

近期,文本到图像生成的质量和性能取得了显著提升,这主要归功于扩散模型取得的惊人成果。然而,文本到图像扩散模型有时难以根据给定的输入提示词创建高保真内容。一个具体问题是,它们难以生成文本提示词中指定的精确物体数量。例如,当提供提示词“桌子上有五个苹果和十个柠檬”时,扩散模型生成的图像通常包含错误数量的物体。在本文中,我们提出了一种改进扩散模型的方法,使其能够基于输入提示词准确产生正确的物体计数。我们采用了一个计数网络,该网络可对任意给定图像执行无需参考的类无关计数。我们计算该计数网络的梯度,并细化每一步预测的噪声。为了解决提示词中存在多种类型物体的问题,我们利用新颖的注意力图引导来为每个物体获取高质量的掩膜。最后,我们使用为每个物体计算的梯度来引导去噪过程。通过广泛的实验与评估,我们证明了所提出的方法显著增强了扩散模型在物体计数方面的保真度。代码可在 https://github.com/furiosa-ai/counting-guidance 获取。

英文摘要:

Recently, there have been significant improvements in the quality and performance of text-to-image generation, largely due to the impressive results attained by diffusion models. However, text-to-image diffusion models sometimes struggle to create high-fidelity content for the given input prompt. One specific issue is their difficulty in generating the precise number of objects specified in the text prompt. For example, when provided with the prompt "five apples and ten lemons on a table," images generated by diffusion models often contain an incorrect number of objects. In this paper, we present a method to improve diffusion models so that they accurately produce the correct object count based on the input prompt. We adopt a counting network that performs reference-less class-agnostic counting for any given image. We calculate the gradients of the counting network and refine the predicted noise for each step. To address the presence of multiple types of objects in the prompt, we utilize novel attention map guidance to obtain high-quality masks for each object. Finally, we guide the denoising process using the calculated gradients for each object. Through extensive experiments and evaluation, we demonstrate that the proposed method significantly enhances the fidelity of diffusion models with respect to object count. Code is available at https://github.com/furiosa-ai/counting-guidance.

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

↑