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

Prompt-Free Diffusion:从文本到图像扩散模型中去除“文本”

Prompt-Free Diffusion: Taking "Text" out of Text-to-Image Diffusion Models

SHI Labs(SHI实验室);Picsart AI Research (PAIR)(Picsart人工智能研究院(PAIR));Tsinghua University(清华大学)

Xingqian Xu, Jiayi Guo, Zhangyang Wang, Gao Huang, Irfan Essa, Humphrey Shi

AI总结:

本文提出 Prompt-Free Diffusion,通过 SeeCoder 替代文本编码器,仅用参考图像、结构条件和噪声实现无文本提示的图像生成,性能可比肩先进 T2I 模型并支持多种下游应用。

摘要:

过去一年,得益于大规模预训练扩散模型以及许多新兴的个性化和编辑方法,文本到图像(T2I)研究呈爆发式增长。然而,一个痛点依然存在:文本提示工程,以及为定制化结果搜索高质量文本提示,与其说是科学,不如说是艺术。此外,正如人们常说的“一图胜千言”——试图用文本描述期望的图像往往会产生歧义,无法全面涵盖精细的视觉细节,因此需要来自视觉领域的更多额外控制。在本文中,我们大胆向前迈进了一步:从预训练的 T2I 扩散模型中去除“文本”,以减轻用户繁重的提示工程负担。我们提出的框架 Prompt-Free Diffusion 仅依赖视觉输入来生成新图像:它将参考图像作为“上下文”、可选的图像结构条件以及初始噪声作为输入,完全不使用文本提示。其背后的核心架构是 Semantic Context Encoder(SeeCoder,语义上下文编码器),替代了常用的基于 CLIP 或基于 LLM 的文本编码器。SeeCoder 的可复用性也使其成为一种便捷的即插即用组件:人们还可以在一个 T2I 模型中预训练 SeeCoder,并将其复用于另一个模型。通过大量实验,Prompt-Free Diffusion 在实验上被发现:(i)优于以往基于范例的图像合成方法;(ii)与采用最佳实践提示的最先进 T2I 模型表现相当;(iii)可自然扩展到动漫人物生成和虚拟试穿等其他下游应用,并具有可观的质量。我们的代码和模型已在 https://github.com/SHI-Labs/Prompt-Free-Diffusion 开源。

英文摘要:

Text-to-image (T2I) research has grown explosively in the past year, owing to the large-scale pre-trained diffusion models and many emerging personalization and editing approaches. Yet, one pain point persists: the text prompt engineering, and searching high-quality text prompts for customized results is more art than science. Moreover, as commonly argued: "an image is worth a thousand words" - the attempt to describe a desired image with texts often ends up being ambiguous and cannot comprehensively cover delicate visual details, hence necessitating more additional controls from the visual domain. In this paper, we take a bold step forward: taking "Text" out of a pre-trained T2I diffusion model, to reduce the burdensome prompt engineering efforts for users. Our proposed framework, Prompt-Free Diffusion, relies on only visual inputs to generate new images: it takes a reference image as "context", an optional image structural conditioning, and an initial noise, with absolutely no text prompt. The core architecture behind the scene is Semantic Context Encoder (SeeCoder), substituting the commonly used CLIP-based or LLM-based text encoder. The reusability of SeeCoder also makes it a convenient drop-in component: one can also pre-train a SeeCoder in one T2I model and reuse it for another. Through extensive experiments, Prompt-Free Diffusion is experimentally found to (i) outperform prior exemplar-based image synthesis approaches; (ii) perform on par with state-of-the-art T2I models using prompts following the best practice; and (iii) be naturally extensible to other downstream applications such as anime figure generation and virtual try-on, with promising quality. Our code and models are open-sourced at https://github.com/SHI-Labs/Prompt-Free-Diffusion.

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

↑