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

DreamTuner:单张图像即可实现主体驱动生成

DreamTuner: Single Image is Enough for Subject-Driven Generation

ByteDance Inc.(字节跳动公司)

Miao Hua, Jiawei Liu, Fei Ding, Wei Liu, Jie Wu, Qian He

AI总结:

DreamTuner提出一种从粗到细注入参考信息的主体驱动生成方法,通过主体编码器与自主体注意力层,在单张图像下实现高质量定制生成,并支持文本或姿态控制。

摘要:

基于扩散的模型在文本到图像生成方面展现了令人印象深刻的能力,并有望用于主体驱动的个性化应用,这些应用需要使用一张或几张参考图像生成定制概念。然而,现有的基于微调的方法难以在主体学习与保持预训练模型生成能力之间取得平衡。此外,其他利用额外图像编码器的方法往往会因编码压缩而丢失主体的重要细节。为应对这些挑战,我们提出了DreamTurner,一种新颖的方法,从粗到细地注入参考信息,以更有效地实现主体驱动的图像生成。DreamTurner引入了一个主体编码器用于粗粒度的主体身份保持,其中压缩的通用主体特征通过注意力层在视觉-文本交叉注意力之前被引入。然后,我们将预训练文本到图像模型中的自注意力层修改为自主体注意力层,以细化目标主体的细节。生成的图像在自主体注意力中从参考图像和自身查询详细特征。值得强调的是,自主体注意力是一种有效、优雅且无需训练的方法,用于保持定制主体的细节特征,并可在推理过程中作为即插即用的解决方案。最后,通过额外的主体驱动微调,DreamTurner在主体驱动的图像生成中取得了显著性能,可通过文本或其他条件(如姿态)进行控制。更多细节,请访问项目页面:https://dreamtuner-diffusion.github.io/。

英文摘要:

Diffusion-based models have demonstrated impressive capabilities for text-to-image generation and are expected for personalized applications of subject-driven generation, which require the generation of customized concepts with one or a few reference images. However, existing methods based on fine-tuning fail to balance the trade-off between subject learning and the maintenance of the generation capabilities of pretrained models. Moreover, other methods that utilize additional image encoders tend to lose important details of the subject due to encoding compression. To address these challenges, we propose DreamTurner, a novel method that injects reference information from coarse to fine to achieve subject-driven image generation more effectively. DreamTurner introduces a subject-encoder for coarse subject identity preservation, where the compressed general subject features are introduced through an attention layer before visual-text cross-attention. We then modify the self-attention layers within pretrained text-to-image models to self-subject-attention layers to refine the details of the target subject. The generated image queries detailed features from both the reference image and itself in self-subject-attention. It is worth emphasizing that self-subject-attention is an effective, elegant, and training-free method for maintaining the detailed features of customized subjects and can serve as a plug-and-play solution during inference. Finally, with additional subject-driven fine-tuning, DreamTurner achieves remarkable performance in subject-driven image generation, which can be controlled by a text or other conditions such as pose. For further details, please visit the project page at https://dreamtuner-diffusion.github.io/.

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

↑