Introduction
Colorizing grayscale video is a fundamental task in computer vision and film restoration, yet it remains a challenging "ill-posed" problem. Because a single luminance value can correspond to multiple chrominance possibilities—a gray shirt could realistically be red, blue, or green—maintaining consistency across thousands of frames is difficult. While single-image colorization has seen significant progress, applying these models frame-by-frame to video typically results in a jarring "flicker" effect.
Researchers from the Beijing University of Posts and Telecommunications have proposed a novel two-stage framework designed to bridge the gap between fully automatic methods and exemplar-based stability. Their approach, which earned 3rd place in the NTIRE 2023 Video Colorization Challenge, utilizes a "semantic anchor" strategy to ensure vibrant and temporally consistent colorization over long sequences.
The Challenge of Temporal Consistency
Existing video colorization techniques generally fall into two categories, each with distinct trade-offs:
- Fully Automatic Methods: These models typically utilize short-range temporal information from adjacent frames. While they require no user input, they are prone to "color drift," where colors gradually fade or shift in hue over long durations.
- Exemplar-Based Methods: These use a pre-colored reference image to guide the colorization of the rest of the video. While highly stable, they require a human expert to manually select and color a high-quality reference frame, making the process labor-intensive.
The goal of this research is to automate the exemplar-based workflow, providing the stability of a reference-guided system without the need for manual intervention.
Proposed Methodology
The authors introduce a two-stage pipeline that treats the first frame of a video as a "source of truth" for the entire sequence.
Stage 1: Automatic Reference Generation
Instead of requiring a manual reference, the system employs a Reference Colorization Network (C1) to automatically colorize the initial frame ($I_0$). This frame becomes the "anchor" ($I_{ref}$) for the rest of the video. By using the video's own first frame as the reference, the system ensures that the anchor shares the same lighting conditions, camera angles, and object instances as the subsequent frames, providing a more relevant guide than an external image.
Stage 2: Semantic Correspondence and Colorization
To propagate colors from the anchor to the rest of the video, the framework utilizes two specialized components:
- Semantic Correspondence Network (S): Unlike traditional optical flow, which tracks pixel movement between adjacent frames and often fails during fast motion or occlusions, this network matches high-level features. It identifies corresponding semantic parts (e.g., matching a person's arm in frame 1 to the same arm in frame 100) regardless of how much they have moved.
- Image Colorization Network (C2): This network synthesizes the final color by integrating three inputs: the current grayscale frame, the previous colored frame (to ensure short-term smoothness), and the semantically matched colors from the anchor (to ensure long-term stability).
The model is optimized using a "coarse-to-fine" perceptual loss based on VGG-19 and a PatchGAN discriminator. This combination ensures that the generated colors are not only temporally stable but also sharp and realistic, avoiding the common pitfalls of color bleeding or blurriness.
Training and Evaluation
The team utilized a diverse set of datasets to train the components of the pipeline. Stage 1 was trained on ImageNet, REDS, DAVIS, and SportMOT, with a specific filtering process to remove low-resolution or chromatically ambiguous images. Stage 2 was trained on 2,090 videos from the DAVIS, Videvo, and FVI datasets.
In the NTIRE 2023 Video Colorization Challenge, the method demonstrated superior performance in the Color Distribution Consistency (CDC) track. Quantitative evaluations on the DAVIS dataset showed the method achieved a Fréchet Inception Distance (FID) of 46.28, significantly outperforming established models like VCGAN (59.58) and FAVC (58.33). Qualitatively, the framework maintains high saturation and stability where other methods either flicker intensely or produce "washed out" results.
Discussion and Limitations
While the "automatic exemplar" approach represents a significant step forward, the authors identify two primary limitations:
- Scene Transitions: The current model assumes the first frame's reference remains relevant. If a video contains a hard cut to a new scene, the original anchor becomes obsolete, potentially leading to incorrect color mapping.
- First-Frame Dependency: Because the anchor dictates the color palette for the entire sequence, any errors made by the C1 network on the first frame will propagate throughout the entire video.
Future iterations of this work will focus on implementing scene-cut detection to trigger the generation of new reference frames and enhancing the robustness of the initial colorization stage.
Summary updated