NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Deep Exemplar-Based Video Colorization

Bo Zhang, Mingming He, Jing Liao, Pedro V. Sander, Lu Yuan, Amine Bermak, Dong Chen

Introduction

Presented at CVPR 2019, this research introduces the first end-to-end recurrent network designed for exemplar-based video colorization. By integrating semantic matching with temporal consistency, the framework provides a robust solution for colorizing legacy black-and-white films using a single colored reference image. This approach significantly outperforms previous methods by eliminating "color drift" and achieving processing speeds nearly 150 times faster than traditional optimization-based techniques.

The Challenge of Video Colorization

Colorizing video is an "ill-posed" problem due to the lack of ground truth for grayscale inputs. Existing solutions generally fall into two categories, each with distinct drawbacks:

  1. Per-frame Colorization: Treating frames independently often results in temporal inconsistency, manifested as distracting "flickering."
  2. Color Propagation: Propagating color from an initial frame using optical flow is smoother but prone to error accumulation. Over time, inaccuracies in flow calculation lead to "color bleeding" or fading.

The goal of this work is to maintain fidelity to a reference exemplar while ensuring high temporal stability across long sequences.

Proposed Methodology

The authors propose a recurrent framework consisting of two primary sub-networks that are trained jointly to balance semantic accuracy and temporal coherence.

The recurrent framework utilizes a correspondence subnet and a colorization subnet to maintain temporal consistency across frames.

Correspondence Subnet

This module identifies semantic matches between the current grayscale frame and the colored reference image. It leverages deep features from a pre-trained VGG19 network to calculate a correlation matrix. This matrix is used to "warp" the reference colors onto the target frame. Additionally, the subnet produces a confidence map to distinguish reliable matches from potential outliers.

The nonlocal correspondence network computes a correlation matrix to warp reference colors based on semantic similarity.

Colorization Subnet

The colorization subnet is an auto-encoder that synthesizes the final colorized frame. It processes four distinct inputs:

  • The current grayscale frame.
  • The warped reference colors from the correspondence subnet.
  • The associated confidence map.
  • The colorized output of the previous frame.

By incorporating the previous frame's result, the network maintains temporal consistency and prevents the accumulation of errors common in pure propagation methods.

Training and Loss Functions

To achieve realistic and stable results, the model is optimized using a multi-component loss strategy:

  • Contextual Loss: Encourages the network to transfer colors between semantically similar regions (e.g., matching sky to sky).
  • Temporal Consistency Loss: Penalizes abrupt color changes along the motion trajectory to minimize flickering.
  • Adversarial Loss: Employs a Video Discriminator to ensure the generated sequences are indistinguishable from natural, coherent video.

Key Insights and Results

A critical innovation is the Reference-per-Frame strategy. By re-examining the reference image for every frame, the model uses the exemplar as a constant "anchor," effectively preventing color drift. Furthermore, the joint training of the correspondence and colorization modules ensures that the matching process is specifically optimized for the final task.

Performance Metrics

  • Efficiency: The feed-forward CNN architecture processes frames in just 0.61 seconds, a massive improvement over the 90 seconds required by previous state-of-the-art optimization methods.
  • Quality: The model achieved a Fréchet Inception Distance (FID) of 4.02, indicating high realism.
  • Accuracy: In Top-1 class accuracy tests, the method scored 64.64%, confirming that the chosen colors are semantically appropriate.
  • User Preference: In blind studies, this method was preferred over 50% of the time compared to three leading competitors.

Conclusion

This recurrent framework represents a major advancement in automated video restoration. While it remains dependent on the quality of the reference image and can struggle with extreme occlusions, its combination of speed, semantic accuracy, and temporal stability sets a new benchmark for exemplar-based colorization.

Summary updated

BibTeX
@inproceedings{zhang2019deep,
  author = {Bo Zhang and Mingming He and Jing Liao and Pedro V. Sander and Lu Yuan and Amine Bermak and Dong Chen},
  title = {{Deep Exemplar-Based Video Colorization}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2019},
  doi = {10.1109/cvpr.2019.00824},
}
Figure