FreeStyle:利用扩散模型实现文本引导风格迁移的免费午餐
FreeStyle: Free Lunch for Text-guided Style Transfer using Diffusion Models
AI总结:
本文提出 FreeStyle,一种无需训练或风格图像、仅凭文本提示完成风格迁移的扩散模型方法,通过双流编码器与单流解码器降低数千次迭代计算,并取得可比或更优效果。
摘要:
生成式扩散模型的快速发展显著推动了风格迁移领域的进步。然而,当前大多数基于扩散模型的风格迁移方法通常涉及缓慢的迭代优化过程,例如模型微调以及风格概念的文本反演。本文提出 FreeStyle,这是一种构建于预训练大型扩散模型之上的创新风格迁移方法,无需进一步优化。此外,该方法仅通过对所需风格的文本描述即可实现风格迁移,消除了对风格图像的需求。具体而言,我们提出了一种双流编码器和单流解码器架构,用以替代扩散模型中传统的 U-Net。在双流编码器中,两个不同的分支分别接收内容图像和风格文本提示作为输入,实现内容与风格的解耦。在解码器中,我们进一步根据给定内容图像和相应风格文本提示对来自双流的特征进行调制,以实现精确的风格迁移。实验结果表明,在各种内容图像和风格文本提示下,我们的方法均具有高质量合成效果和保真度。与需要训练的最先进方法相比,我们的 FreeStyle 方法通过减少数千次迭代显著降低了计算负担,同时在包括 CLIP Aesthetic Score、CLIP Score 和 Preference 在内的多项评估指标上取得相当或更优的性能。代码已发布于:https://github.com/FreeStyleFreeLunch/FreeStyle。
英文摘要:
The rapid development of generative diffusion models has significantly advanced the field of style transfer. However, most current style transfer methods based on diffusion models typically involve a slow iterative optimization process, e.g., model fine-tuning and textual inversion of style concept. In this paper, we introduce FreeStyle, an innovative style transfer method built upon a pre-trained large diffusion model, requiring no further optimization. Besides, our method enables style transfer only through a text description of the desired style, eliminating the necessity of style images. Specifically, we propose a dual-stream encoder and single-stream decoder architecture, replacing the conventional U-Net in diffusion models. In the dual-stream encoder, two distinct branches take the content image and style text prompt as inputs, achieving content and style decoupling. In the decoder, we further modulate features from the dual streams based on a given content image and the corresponding style text prompt for precise style transfer. Our experimental results demonstrate high-quality synthesis and fidelity of our method across various content images and style text prompts. Compared with state-of-the-art methods that require training, our FreeStyle approach notably reduces the computational burden by thousands of iterations, while achieving comparable or superior performance across multiple evaluation metrics including CLIP Aesthetic Score, CLIP Score, and Preference. We have released the code at: https://github.com/FreeStyleFreeLunch/FreeStyle.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。