arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2408.11721cs.CVcs.AIcs.GRcs.LG
收藏

面向文本到图像扩散模型的检测驱动目标数量优化

Detection-Driven Object Count Optimization for Text-to-Image Diffusion Models

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

Oz Zafar, Yuval Cohen, Lior Wolf, Idan Schwartz

AI总结:

本文提出检测驱动的目标数量优化框架,利用预训练计数模型与目标检测器引导文本到图像生成,通过计数token优化、检测驱动缩放校正和参数复用,实现高效、灵活且准确的目标数量控制。

摘要:

在文本到图像生成中准确控制目标数量仍然是一个关键挑战。监督方法常常失败,因为训练数据很少覆盖所有数量变化。通过操纵去噪过程来添加或移除目标的方法可以有所帮助;然而,它们仍然需要标注数据,限制了鲁棒性和图像质量,并且依赖缓慢的迭代过程。现有的预训练可微计数模型依赖软目标密度求和,可以用于引导生成,但使用它们面临三个主要挑战:(i)它们是在干净图像上预训练的,因此在处理含噪输入的去噪步骤中效果较差;(ii)它们对视角变化不鲁棒;(iii)优化计算开销大,每张图像需要重复进行模型评估。我们提出一个新的框架,利用预训练目标计数技术和目标检测器来引导生成。首先,我们使用在完整生成图像上计算的外循环损失来优化一个计数token。其次,我们引入一个检测驱动的缩放项,用于校正由视角和比例偏移等因素引起的误差,而无需通过检测模型进行反向传播。第三,我们证明优化后的参数可以复用于新的提示,从而无需重复优化。我们的方法通过token复用提供效率,通过兼容各种检测器提供灵活性,并通过改进对不同目标类别的计数提供准确性。

英文摘要:

Accurately controlling object count in text-to-image generation remains a key challenge. Supervised methods often fail, as training data rarely covers all count variations. Methods that manipulate the denoising process to add or remove objects can help; however, they still require labeled data, limit robustness and image quality, and rely on a slow, iterative process. Pre-trained differentiable counting models that rely on soft object density summation exist and could steer generation, but employing them presents three main challenges: (i) they are pre-trained on clean images, making them less effective during denoising steps that operate on noisy inputs; (ii) they are not robust to viewpoint changes; and (iii) optimization is computationally expensive, requiring repeated model evaluations per image. We propose a new framework that uses pre-trained object counting techniques and object detectors to guide generation. First, we optimize a counting token using an outer-loop loss computed on fully generated images. Second, we introduce a detection-driven scaling term that corrects errors caused by viewpoint and proportion shifts, among other factors, without requiring backpropagation through the detection model. Third, we show that the optimized parameters can be reused for new prompts, removing the need for repeated optimization. Our method provides efficiency through token reuse, flexibility via compatibility with various detectors, and accuracy with improved counting across diverse object categories.

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

↑