Prompt-based Consistent Video Colorization

Silvia Dani, Tiberio Uricchio, Lorenzo SeidenariarXiv 2025

TL;DR

This paper introduces a training-free framework for automatic video colorization that combines language-conditioned diffusion models with instance segmentation and optical flow. By leveraging generic or detailed text prompts alongside a novel warping correction mechanism, it achieves state-of-the-art color accuracy and vibrancy while eliminating distracting temporal flickering.

What Problem Does This Paper Address?

Video colorization—the process of adding realistic color to grayscale footage—is vital for historical film restoration and digital media production. However, existing techniques generally suffer from two major drawbacks:

  1. Heavy Manual Effort: Reference-based methods require users to painstakingly provide color "hints" or keyframes, which struggle to adapt when a scene changes.
  2. Temporal Flickering: Fully automatic frame-by-frame methods colorize each image independently. Because generative models can choose different plausible colors for the same object across consecutive frames, the resulting video suffers from jarring, unstable color shifts (flickering).

The authors tackle the challenge of creating a fully automated pipeline that generates highly vibrant, realistic colors while keeping those colors perfectly stable over time.

Methods

The proposed framework operates primarily in the CIE LAB color space, separating a video's luminance ($L$) from its chrominance ($A, B$ channels). The pipeline processes frames sequentially through three main steps:

Fig. 1: Overview of the proposed framework. Our method takes grayscale video frames as input, along with automatically generated object masks from SAM and a textual prompt (generic for automatic mode, detailed for guided mode).
  • Language-Guided Frame Colorization: Each grayscale frame is colorized using L-CAD, a diffusion-based image colorization model. L-CAD is guided by two automated inputs: spatial object boundaries from the Segment Anything Model (SAM) and a textual prompt. In the fully automatic mode, the authors use a generic prompt ("a colorful image"). In guided mode, detailed scene descriptions are used.
  • Temporal Propagation via Optical Flow: To prevent flickering, the dense optical flow between the previous and current frame is calculated using the RAFT architecture. The final chrominance channels ($A, B$) from the previous frame are warped forward to predict the colors of the current frame.
  • Warping Correction Mechanism: Optical flow often fails around occlusions, fast motion, or scene cuts. To fix this, the system compares the warped frame against the previous frame using a pixel-wise Peak Signal-to-Noise Ratio (PSNR). If the local PSNR falls below a threshold ($\tau = 25$ dB), it indicates a warping artifact. The system then selectively replaces those corrupted pixels with the fresh, independent color predictions from the L-CAD model.

Datasets

The authors evaluated their approach on the test splits of two widely accepted benchmarks:

  • DAVIS30: 30 videos featuring complex scenes, significant object motion, and frequent appearance changes.
  • VIDEVO20: 20 videos characterized by smoother camera movements, ideal for testing baseline temporal consistency.
  • DAVIS30 pairs: A synthetic dataset created by concatenating random video pairs from DAVIS30 to explicitly test how well the model handles sudden scene transitions.

Key Insights and Ideas

  • Generic Prompts are Surprisingly Powerful: One might think a language-conditioned model needs highly specific descriptions to work well. However, the authors found that pairing a generic prompt like "a colorful image" with SAM's structural object masks allows the diffusion model's internal pre-trained priors to infer highly accurate and realistic colors completely on its own.
  • Gating with Local PSNR: Instead of blindly trusting optical flow or generative predictions, using a pixel-wise PSNR threshold acts as an effective "trust filter." It seamlessly balances the stability of historical color propagation with the correctness of a fresh generative prediction.
  • The Necessity of Dynamic Prompts: When utilizing detailed text prompts for guided colorization, keeping the prompt static across a video fails during scene cuts. Updating the text prompt dynamically (either at detected scene changes or at regular 1-second intervals) is crucial to prevent unnatural color bleeding or desaturation.

Key Results

The proposed method achieves a new state-of-the-art in video colorization quality across multiple metrics:

  • Superior Accuracy: In fully automatic mode, the framework achieves a PSNR of 28.63 dB on DAVIS30 and 29.54 dB on VIDEVO20, outperforming existing automatic and reference-based methods by over 3 dB.
  • Realistic Vibrancy: Many colorization models produce washed-out results. This approach achieves a Colorfulness ratio close to 1.0 (0.93 on DAVIS30), matching the color richness of the original ground-truth videos.
  • Flicker Reduction: The temporal consistency (measured via Color Distribution Consistency, or CDC) is highly competitive with models that were explicitly trained end-to-end with temporal loss functions.

Qualitatively, the warping correction step proves essential for visual realism, successfully eliminating uncolored gray patches and color-bleeding artifacts in high-motion zones.

Visual comparison demonstrating the impact of the warping correction mechanism.

Limitations and Future Work

While the framework delivers impressive results, the authors note a few limitations:

  • Prompt Generation Dependency: For the guided colorization mode, detailed prompts were generated using GPT-3.5 applied to the original color frames to simulate an ideal user. Automatically generating highly detailed, color-accurate prompts from purely grayscale inputs remains an open challenge.
  • Computational Footprint: Because the pipeline chains together several large, state-of-the-art models (L-CAD diffusion, SAM, and RAFT), it is computationally heavy and not yet optimized for real-time applications.

Future work could explore integrating compact vision-language models to infer detailed semantic color schemes directly from grayscale context.

Summary updated

BibTeX
@misc{dani2025prompt,
  author = {Silvia Dani and Tiberio Uricchio and Lorenzo Seidenari},
  title = {{Prompt-based Consistent Video Colorization}},
  year = {2025},
  eprint = {2511.22330},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.22330},
}
Figure