ColoristaNet for Photorealistic Video Style Transfer

Xiaowen Qiu, Ruize Xu, Boan He, Yingtao Zhang, Wenqiang Zhang, Weifeng Ge

TL;DR

ColoristaNet is a novel self-supervised framework for photorealistic video style transfer that eliminates the structural distortions and painterly artifacts common in prior methods. By decomposing style transfer into separate style removal and restoration steps, and introducing a "decoupled instance normalization" technique, it achieves highly realistic color mapping while maintaining strict temporal consistency across video frames.

What Problem Does This Paper Address?

Photorealistic style transfer aims to apply the color palette and mood of a reference image to a target image or video without altering the underlying structure. Unlike artistic style transfer, which intentionally introduces painterly distortions, photorealistic transfer must yield results that look like real photos taken by a camera.

Existing state-of-the-art methods frequently suffer from two major flaws:

  1. Structural Artifacts: Traditional techniques rely on matching summary statistics via Gram loss, Adaptive Instance Normalization (AdaIN), or Whitening and Coloring Transforms (WCT). This aggressive matching often warps local image structures or creates "overexposed," unnatural textures.
  2. Temporal Inconsistency: Applying single-image style transfer frame-by-frame to a video causes jarring flickering artifacts unless heavy, impractical constraints (like manual semantic masks) are enforced.
Prior methods vs. ColoristaNet demonstrating structural artifacts and unrealistic stylization.

Methods

The authors introduce ColoristaNet, which abandons the problematic Gram loss entirely in favor of a self-supervised, structure-preserving pipeline consisting of three core components:

  • Self-Supervised Style Removal & Restoration: During training, the framework uses two distinct networks. The first network removes the original style from a content image. The second network then attempts to restore the original style, using the original image as both the style reference and the ground-truth target. This allows the network to be trained using only content loss, forcing it to preserve structural integrity perfectly.
  • Decoupled Instance Normalization (DecoupledIN): Instead of directly forcing content feature statistics to match style feature statistics, DecoupledIN splits the process into feature whitening (removing the content's original style) and restylization. It utilizes a $3 \times 3$ convolutional layer to expand feature channels, allowing the network to smoothly map styles in a higher-dimensional space without destroying subtle local details.
Conceptual illustration and visual comparison of DecoupledIN versus standard AdaIN.
  • Temporal Consistency Maintenance: To prevent video flickering, the style restoration network incorporates RAFT (a state-of-the-art optical flow estimation network) and a ConvLSTM. RAFT tracks pixel movements between consecutive frames to warp the hidden states of the ConvLSTM, ensuring smooth, temporally coherent style transitions.

Datasets

The model was trained and evaluated using the following datasets:

  • Content Videos (Training): Approximately 6,000 videos collected from the HMDB and Youtube VOS datasets.
  • Style Images (Training): Around 24,000 diverse images collected from the Internet.
  • Testing: High-definition videos downloaded from YouTube and Videvo.

Key Insights and Ideas

  • The Gram Loss Flaw: The authors identify that completely matching the summary statistics of content and style features is fundamentally incompatible with photorealism. Forcing an exact statistical match alters local feature contrast, which is what defines an image's physical structure.
  • Supervised Learning via Style Reversal: By framing style transfer as a "removal then reconstruction" loop, the authors cleverly turn an unsupervised problem into a fully supervised one. Because the target is a real photo (the original input), the network naturally learns a boundary for what looks photorealistic.
  • Smoothness via Channel Expansion: Separating whitening from stylization prevents network neurons from being pushed outside their standard operating ranges. Expanding the channels during this intermediate step acts as a buffer that preserves fine textures.

Key Results

ColoristaNet was evaluated against leading photorealistic style transfer methods, including PhotoWCT, $\text{WCT}^2$, and PhotoNAS.

Quantitative Performance

ColoristaNet achieved superior scores across structural and perceptual metrics on a dataset of 100 video/style pairs:

  • SSIM (Structure Similarity) $\uparrow$: 0.785 (compared to 0.555 for $\text{WCT}^2$ and 0.737 for PhotoNAS), demonstrating significantly better detail preservation.
  • LPIPS (Perceptual Distance) $\downarrow$: 0.223 (compared to 0.391 for $\text{WCT}^2$), indicating the outputs are perceptually much closer to the clean content images.
  • Content Loss $\downarrow$: 2.427 (the lowest among all tested methods).

Inference Speed

Tested on an NVIDIA GeForce RTX 3090 GPU, ColoristaNet outperformed competitors in processing speed across multiple resolutions:

  • $600 \times 360$: 0.068s per frame (vs. 2.13s for $\text{WCT}^2$ and 0.124s for PhotoNAS).
  • $1920 \times 1080$ (1080p): 0.482s per frame (vs. 4.362s for $\text{WCT}^2$).

A user study with 30 independent testers also ranked ColoristaNet highest in photorealism, stylization quality, and temporal coherency.

Limitations and Future Work

Despite its strong performance, the authors note two primary limitations:

  • Under-Stylization: Because ColoristaNet heavily prioritizes photorealism and structural preservation, it occasionally fails to transfer the reference style completely, leading to slightly conservative color changes in certain scenarios.
  • Real-Time Bottleneck: While the decoder itself is fast (14ms), the inclusion of the RAFT architecture for optical flow adds a heavy computational burden (209ms per frame). This prevents the current implementation from achieving true real-time video processing on a single GPU. The authors plan to explore faster pixel-tracking alternatives in future iterations.

Summary updated

BibTeX
@misc{qiu2022coloristanet,
  author = {Xiaowen Qiu and Ruize Xu and Boan He and Yingtao Zhang and Wenqiang Zhang and Weifeng Ge},
  title = {{ColoristaNet for Photorealistic Video Style Transfer}},
  year = {2022},
  eprint = {2212.09247},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2212.09247},
}
Figure