2024-11-26 · 进阶 · 机器学习 · 计算机视觉 · 自然语言处理

Large-Scale Text-to-Image Model with Inpainting is a Zero-Shot Subject-Driven Image Generator

该论文提出了一种基于补丁修复的零样本主题驱动文本到图像生成方法,即Diptych Prompting,通过利用大规模文本到图像模型FLUX的拼贴生成特性,实现了对图像的精确主题对齐。

更新于 2024-11-26。作者:Chaehun Shin、Jooyoung Choi、Heeseung Kim、Sungroh Yoon。

中文摘要

主题驱动文本生成图像旨在通过准确捕捉主题的视觉特征和文本提示的语义内容,在期望的情境中生成新的主题图像。传统方法依赖于耗时且资源密集的主题对齐微调,而最近的无需训练方法利用即兴图像提示,通常牺牲了主题对齐。在本文中,我们介绍了二联画提示,这是一种新颖的无需训练方法,它通过利用大规模文本生成图像模型中二联画生成的涌现特性,将二联画提示重新解释为具有精确主题对齐的补绘任务。二联画提示将参考图像放置在左侧面板,并在右侧面板执行文本条件下的补绘。我们通过去除参考图像的背景进一步防止了不希望的内容泄露,并通过增强补绘过程中面板之间的注意力权重,提高了生成主题的精细细节。实验结果表明,我们的方法在零样本图像提示方法中表现出显著优势,生成的图像在视觉上更受用户青睐。此外,我们的方法不仅支持主题驱动的生成,还支持风格化图像生成和主题驱动的图像编辑,展示了在多种图像生成应用中的多功能性。项目页面:https://diptychprompting.github.io/

英文摘要

Subject-driven text-to-image generation aims to produce images of a new subject within a desired context by accurately capturing both the visual characteristics of the subject and the semantic content of a text prompt. Traditional methods rely on time- and resource-intensive fine-tuning for subject alignment, while recent zero-shot approaches leverage on-the-fly image prompting, often sacrificing subject alignment. In this paper, we introduce Diptych Prompting, a novel zero-shot approach that reinterprets as an inpainting task with precise subject alignment by leveraging the emergent property of diptych generation in large-scale text-to-image models. Diptych Prompting arranges an incomplete diptych with the reference image in the left panel, and performs text-conditioned inpainting on the right panel. We further prevent unwanted content leakage by removing the background in the reference image and improve fine-grained details in the generated subject by enhancing attention weights between the panels during inpainting. Experimental results confirm that our approach significantly outperforms zero-shot image prompting methods, resulting in images that are visually preferred by users. Additionally, our method supports not only subject-driven generation but also stylized image generation and subject-driven image editing, demonstrating versatility across diverse image generation applications. Project page: https://diptychprompting.github.io/

解读

一句话总结

该论文提出了一种基于补丁修复的零样本主题驱动文本到图像生成方法,即Diptych Prompting,通过利用大规模文本到图像模型FLUX的拼贴生成特性,实现了对图像的精确主题对齐。

问题1:这篇论文想要解决什么具体问题?

• 问题背景:主题驱动文本到图像生成旨在根据文本提示和参考图像生成特定主题的新图像,传统方法依赖时间资源和资源密集的微调,而最近的零样本方法牺牲了主题对齐。 • 现有方案不足:现有方法要么需要大量的微调,要么在零样本生成中牺牲了主题对齐。 • 研究目标:提出一种新的零样本方法,通过利用大规模文本到图像模型FLUX的拼贴生成特性,实现主题的精确对齐。

问题2:论文的核心创新点是什么?

• 技术创新:将零样本主题驱动文本到图像生成作为补丁修复任务,通过利用FLUX的拼贴生成能力来实现精确的主题对齐。 • 方法改进:通过去除参考图像的背景和增强面板之间的注意力权重来防止内容泄漏并捕获目标主体的细节。 • 优势:与现有方法相比,该方法在主题对齐和文本对齐方面表现更优,且支持主题驱动生成、风格化图像生成和主题驱动图像编辑。

问题3:实验结果如何验证了方法的有效性?

• 关键实验:在DreamBench数据集上进行的零样本主题驱动文本到图像生成实验。 • 性能提升:与基于编码器的图像提示方法相比,Diptych Prompting在DINO和CLIP-T指标上表现出更优的性能。 • 对比结果:在人类偏好研究中,Diptych Prompting在各种基线方法中表现最佳。

问题4:这个研究的实际应用价值是什么?

• 应用场景:主题驱动图像生成、风格化图像生成和主题驱动图像编辑。 • 实施建议:利用Diptych Prompting可以有效地生成各种图像,并在实际应用中提供新的可能性。 • 局限与展望:目前该方法依赖于FLUX模型,随着更先进的文本到图像模型的发展,该方法有望应用于更广泛的模型。

来源

机器可读索引:llms.txt