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

CLIP-GEN:使用CLIP的文本到图像生成器的无障碍训练

CLIP-GEN: Language-Free Training of a Text-to-Image Generator with CLIP

ByteDance Inc.(字节跳动公司)

Zihao Wang, Wei Liu, Qian He, Xinglong Wu, Zili Yi

摘要:

在一般域中训练文本到图像生成器(例如,Dall.e,CogView)需要大量的成对文本图像数据,这是太昂贵的收集。在本文中,我们提出了一个自监督的方案命名为CLIP-GEN的一般文本到图像生成与语言图像先验提取预训练CLIP模型。在我们的方法中,我们只需要一组未标记的图像在一般域训练的文本到图像的生成器。具体地说,给定一幅没有文本标签的图像,我们首先用CLIP的图像编码器在联合的语言-视觉嵌入空间中提取图像的嵌入。接下来,我们将图像转换为VQGAN码本空间中的离散令牌序列(VQGAN模型可以使用手头的未标记图像数据集进行训练)。最后,我们训练一个自回归Transformer,它从统一的语言视觉表示映射图像标记。一旦被训练,Transformer可以基于从CLIP的文本编码器提取的文本嵌入在输入文本上生成相干图像令牌。这样的策略使我们能够训练一个强大的和通用的文本到图像生成器与大型无文本图像数据集,如ImageNet。定性和定量的评估验证,我们的方法显着优于基于优化的文本到图像的方法在图像质量方面,同时不损害文本图像匹配。我们的方法甚至可以实现与CogView等旗舰监督模型相当的性能。

英文摘要:

Training a text-to-image generator in the general domain (e.g., Dall.e, CogView) requires huge amounts of paired text-image data, which is too expensive to collect. In this paper, we propose a self-supervised scheme named as CLIP-GEN for general text-to-image generation with the language-image priors extracted with a pre-trained CLIP model. In our approach, we only require a set of unlabeled images in the general domain to train a text-to-image generator. Specifically, given an image without text labels, we first extract the embedding of the image in the united language-vision embedding space with the image encoder of CLIP. Next, we convert the image into a sequence of discrete tokens in the VQGAN codebook space (the VQGAN model can be trained with the unlabeled image dataset in hand). Finally, we train an autoregressive transformer that maps the image tokens from its unified language-vision representation. Once trained, the transformer can generate coherent image tokens based on the text embedding extracted from the text encoder of CLIP upon an input text. Such a strategy enables us to train a strong and general text-to-image generator with large text-free image dataset such as ImageNet. Qualitative and quantitative evaluations verify that our method significantly outperforms optimization-based text-to-image methods in terms of image quality while not compromising the text-image matching. Our method can even achieve comparable performance as flagship supervised models like CogView.

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

↑