Style-A-Video: Agile Diffusion for Arbitrary Text-based Video Style Transfer

Nisha Huang, Yuxin Zhang, Weiming Dong

TL;DR

Style-A-Video is a zero-shot framework that enables arbitrary text-based style transfer for videos without the need for per-video fine-tuning. By combining multi-condition guidance (text, content, and structure) with a dedicated temporal consistency module, it achieves high-quality artistic transformations while preserving the original video's structure and eliminating inter-frame flicker.

What Problem Does This Paper Address?

While text-to-image diffusion models like Stable Diffusion have revolutionized digital art, extending these capabilities to video remains a significant challenge. Existing methods often fall into two traps:

  1. Computational Cost: Many state-of-the-art approaches require expensive per-video training or fine-tuning (e.g., Tune-A-Video), making them impractical for casual use.
  2. Content Destruction: The stochastic nature of the diffusion process—where noise is added and then removed—often destroys the fine structural details of the original video. This leads to "semantic drift" where the output looks cool but no longer resembles the source footage.
  3. Temporal Instability: Applying image-based models frame-by-frame usually results in "flicker," where colors and textures shift jarringly between frames.

Style-A-Video tackles these issues by proposing a "zero-shot" method that balances artistic expression with structural integrity and temporal smoothness.

Methods

The authors build their framework on top of Latent Diffusion Models (LDMs). The core innovation lies in how they guide the denoising process to ensure the output respects the source video.

The overall framework of Style-A-Video, highlighting the conditional representation, sampling, and temporal consistency modules.

1. Triple-Condition Guidance

Instead of just using a text prompt, the model uses three distinct guidance signals:

  • Style Guidance (Text): The target style (e.g., "Make it a Van Gogh painting").
  • Content Guidance (Video Frames): The model adds extra input channels to the U-Net to inject the original frame information directly.
  • Structure Guidance (Self-Attention Maps): The authors leverage the model's internal self-attention maps to capture geometric features, ensuring the layout of the scene remains consistent.

2. Sampling Optimization

To further prevent the model from deviating too far from the source, they introduce a structure loss calculated in the CLIP feature space. During the sampling process, they take gradient steps to minimize the difference between the input frame and the predicted denoised frame, ensuring the "bones" of the image stay put.

3. Temporal Consistency Module

To solve the flicker problem, the authors employ a lightweight deflicker network. This module looks at consecutive frames and the previous stylized output to refine the current frame, ensuring smooth transitions in color and illumination.

Datasets

The authors did not train a new foundation model; instead, they utilized pre-trained weights from Stable Diffusion and GPT-3. For evaluation, they sourced a variety of real-world videos from the web covering diverse categories: people, animals, and landscapes.

They compared their results against several competitive baselines:

  • Text2LIVE
  • Tune-A-Video
  • Deforum
  • VideoCrafter

Key Insights and Ideas

  • Zero-Shot is the Goal: By avoiding per-video fine-tuning, Style-A-Video is significantly faster and more "agile" than predecessors like Tune-A-Video.
  • Attention as Structure: One of the "aha" moments is realizing that self-attention maps in a U-Net naturally encode the layout and geometric features of an image. Using these as a guidance condition is a clever way to preserve structure without needing explicit depth maps or edge detection.
  • CLIP Space vs. Pixel Space: Optimizing for structure in the CLIP feature space allows for "substantial texture and appearance changes" (the art) while keeping the "perceived semantics" (the content) intact.

Key Results

Style-A-Video demonstrates a clear edge in both qualitative and quantitative metrics:

  • Efficiency: It takes approximately 1 second and consumes ~4GB of VRAM to generate a 512x256 frame on an NVIDIA RTX 3090.
  • Quantitative Superiority: In user studies and automated metrics (using CLIP embeddings), Style-A-Video outperformed baselines in Temporal Consistency (0.987) and Prompt Consistency (0.304).
  • Qualitative Quality: As seen in the comparisons, while baselines like Tune-A-Video often lose the subject's shape (e.g., a giraffe turning into a boat), Style-A-Video maintains the subject while applying vivid stylistic changes.
Qualitative comparison showing Style-A-Video's superior temporal consistency and content preservation compared to baselines.

Limitations and Future Work

While the results are impressive, the authors note that there is still room for improvement:

  • Complex Motion: While the model handles moving shots well, extremely fast or complex motion can still challenge the temporal consistency module.
  • Future Directions: The authors plan to explore incorporating additional conditions, such as pose estimation and 3D parameters, to further enhance video stability and control.

For those interested in trying it out, the code is available on GitHub.

Summary updated

BibTeX
@article{huang2024style,
  author = {Nisha Huang and Yuxin Zhang and Weiming Dong},
  title = {{Style-A-Video: Agile Diffusion for Arbitrary Text-based Video Style Transfer}},
  journal = {IEEE Signal Processing Letters},
  year = {2024},
  doi = {10.1109/lsp.2024.3398538},
}
Figure