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

用于多对象文本到图像生成的检测器引导

Detector Guidance for Multi-Object Text-to-Image Generation

Zhejiang University(浙江大学);ByteDance AI Lab(字节跳动人工智能实验室)

Luping Liu, Zijian Zhang, Yi Ren, Rongjie Huang, Xiang Yin, Zhou Zhao

AI总结:

针对文本到图像生成中的多对象混合问题,提出 Detector Guidance,利用潜在对象检测和交叉注意力图操纵分离对象,人工评估提升 8–22%。

摘要:

扩散模型在文本到图像生成中展现出令人瞩目的性能。它们利用文本编码器和交叉注意力块,在像素层面将文本信息注入图像。然而,它们生成包含文本中多个对象的图像的能力仍然受限。以往工作识别出 CLIP 文本编码器中的信息混合问题,并引入 T5 文本编码器或结合强先验知识来辅助对齐。我们发现,混合问题同样发生在图像侧和交叉注意力块中。带噪图像会使不同对象看起来相似,而交叉注意力块在像素层面注入信息,导致全局对象理解发生泄漏,并造成对象混合。本文提出 Detector Guidance(DG,检测器引导),它集成一个潜在对象检测模型,在生成过程中分离不同对象。DG 首先在交叉注意力图(CAMs)上执行潜在对象检测以获取对象信息。随后,基于该信息,DG 通过操纵后续 CAMs,对冲突提示进行掩码,并增强相关提示。我们使用 Stable Diffusion 在 COCO、CC 以及一个新的多相关对象基准 MRO 上评估 DG 的有效性。人工评估表明,在没有任何人工参与和额外迭代的情况下,DG 在防止冲突概念融合并确保每个对象拥有其独特区域方面带来 8–22% 的优势。我们的实现可在 https://github.com/luping-liu/Detector-Guidance 获取。

英文摘要:

Diffusion models have demonstrated impressive performance in text-to-image generation. They utilize a text encoder and cross-attention blocks to infuse textual information into images at a pixel level. However, their capability to generate images with text containing multiple objects is still restricted. Previous works identify the problem of information mixing in the CLIP text encoder and introduce the T5 text encoder or incorporate strong prior knowledge to assist with the alignment. We find that mixing problems also occur on the image side and in the cross-attention blocks. The noisy images can cause different objects to appear similar, and the cross-attention blocks inject information at a pixel level, leading to leakage of global object understanding and resulting in object mixing. In this paper, we introduce Detector Guidance (DG), which integrates a latent object detection model to separate different objects during the generation process. DG first performs latent object detection on cross-attention maps (CAMs) to obtain object information. Based on this information, DG then masks conflicting prompts and enhances related prompts by manipulating the following CAMs. We evaluate the effectiveness of DG using Stable Diffusion on COCO, CC, and a novel multi-related object benchmark, MRO. Human evaluations demonstrate that DG provides an 8-22\% advantage in preventing the amalgamation of conflicting concepts and ensuring that each object possesses its unique region without any human involvement and additional iterations. Our implementation is available at \url{https://github.com/luping-liu/Detector-Guidance}.

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

↑