Abstract
Text-based style transfer is a newly-emerging research topic that uses text information instead of style image to guide the transfer process, significantly extending the application scenario of style transfer. However, previous methods require extra time for optimization or text-image paired data, leading to limited effectiveness. In this work, we achieve a data-efficient text-based style transfer method that does not require optimization at the inference stage. Specifically, we convert text input to the style space of the pre-trained VGG network to realize a more effective style swap. We also leverage CLIP's multi-modal embedding space to learn the text-to-style mapping with the image dataset only. Our method can transfer arbitrary new styles of text input in real-time and synthesize high-quality artistic images.
Introduction
Traditional Artistic Style Transfer (AST) typically relies on a reference "style image" to define the aesthetic transformation of a content image. While effective, finding a specific reference image can be more cumbersome than describing a desired look in natural language. Recent text-to-style methods have attempted to address this, but they often suffer from two primary drawbacks: extreme computational overhead during inference (optimization-based) or a reliance on scarce, high-quality text-image paired datasets.
ITstyler introduces a framework that is both data-efficient and inference-efficient. By training only on image datasets, the model learns to map text prompts to artistic styles in real-time, achieving speeds nearly 2,000x faster than previous optimization-based competitors like CLIPstyler.
Methodology
The core innovation of ITstyler lies in its ability to bridge the gap between CLIP’s multi-modal embedding space and the style-representative feature space of a pre-trained VGG network.
The Mapping Network
Instead of requiring paired text-image data, ITstyler utilizes a Mapping Network trained exclusively on images. During training, the network takes a CLIP image embedding and learns to predict the corresponding VGG style statistics (mean and variance) for that image. Because CLIP aligns image and text embeddings in a shared space, the model can seamlessly switch to text prompts during inference. The Mapping Network treats the text embedding as a proxy for an image embedding, successfully predicting the intended style statistics.
Text-based Adaptive Instance Normalization (T-AdaIN)
To apply these predicted statistics, the authors developed T-AdaIN. This layer modulates the features of the content image using the statistics derived from the text prompt. These modulated features are then processed by a decoder and refined by a multi-scale discriminator to ensure high-quality, artifact-free artistic outputs.
Experimental Results
ITstyler demonstrates significant improvements in both efficiency and visual quality. In performance benchmarks, the model processed a 256x256 image in just 0.021 seconds, compared to 43 seconds for optimization-based methods.
In user studies, ITstyler was preferred 82.7% of the time over existing methods like LDAST and CLIPstyler. Furthermore, the model exhibits superior temporal stability in video stylization, as measured by the LPIPS metric, resulting in smoother transitions and reduced flickering compared to previous state-of-the-art approaches.
Conclusion and Future Work
ITstyler successfully demonstrates that text-based style transfer can be achieved in real-time without the need for paired training data. By leveraging the shared latent space of CLIP, the model enables intuitive, language-driven artistic control. While the model currently focuses on stylistic attributes rather than semantic content changes (e.g., it struggles with prompts like "a dog" when applied to a landscape), it opens new avenues for real-time generative tasks guided by natural language.
Summary updated