Abstract
We propose a novel reference-based video colorization framework with spatiotemporal correspondence. Reference-based methods colorize grayscale frames referencing a user input color frame. Existing methods suffer from the color leakage between objects and the emergence of average colors, derived from non-local semantic correspondence in space. To address this issue, we warp colors only from the regions on the reference frame restricted by correspondence in time. We propagate masks as temporal correspondences, using two complementary tracking approaches: off-the-shelf instance tracking for high performance segmentation, and newly proposed dense tracking to track various types of objects. By restricting temporally-related regions for referencing colors, our approach propagates faithful colors throughout the video. Experiments demonstrate that our method outperforms state-of-the-art methods quantitatively and qualitatively.
Introduction
Colorizing historical black-and-white footage is a vital task for cultural preservation and artistic expression. However, manual colorization is labor-intensive, while fully automatic methods often result in temporal flickering or "washed-out" desaturated colors. Reference-based video colorization aims to solve this by using a single colorized frame (the reference) to guide the colorization of the rest of the video (the target).
Current approaches generally fall into two categories: propagation-based and attention-based. Propagation-based methods transfer color sequentially from one frame to the next, which often leads to error accumulation over time. Attention-based methods use non-local semantic correspondence to find similar textures in the reference frame. While more robust, these methods frequently suffer from "color leakage"—where the color of one object (e.g., a red car) is incorrectly applied to another (e.g., a gray building) due to visual similarities—resulting in muddy, averaged colors.
Proposed Method: Spatiotemporal Correspondence
The core innovation of this work is the use of spatiotemporal correspondence to restrict color warping. Instead of allowing the model to look at the entire reference frame, the proposed framework restricts the search to regions that are temporally related to the target pixels.
Tracking and Mask Propagation
The framework utilizes a three-stage pipeline: Tracking, Warping, and Refinement.
- Tracking: To establish temporal correspondence, the system tracks objects and regions across frames. It uses Instance Tracking (e.g., Mask R-CNN) for well-defined objects and a novel Dense Tracking mechanism for background elements like sky or roads.
- Spatially Restricted Color Warping: By propagating masks rather than raw colors, the system avoids the "snowball effect" of errors. These masks define the search space in the reference frame, ensuring that an object only receives color from its corresponding region in the reference.
- Refinement: A U-Net-based encoder-decoder network ensures spatial consistency and smooth transitions between neighboring frames.
Architectural Comparison
The proposed method differs from existing paradigms by combining the strengths of both attention and temporal consistency.
Experimental Results
The model was evaluated on the DAVIS-2017 dataset and a curated Videvo dataset containing complex real-world scenes.
- Quantitative Performance: On DAVIS-2017, the proposed method achieved a Peak Signal-to-Noise Ratio (PSNR) of 29.13, outperforming previous attention-based methods which typically range around 28.6.
- Qualitative Fidelity: Visual results show that the method maintains distinct colors for similar objects (e.g., two different colored cars) and preserves color consistency over long sequences, where previous state-of-the-art models often produced "muddy" or averaged results.
Conclusion
By introducing spatiotemporal constraints through mask propagation, this framework effectively mitigates color leakage and average color issues in video colorization. Future work will focus on automating tracking hyperparameters and improving robustness to rapid camera movements and scene cuts.
Reference: Akimoto, N., et al. (2020). Reference-Based Video Colorization with Spatiotemporal Correspondence. arXiv:2011.12528v1.
Summary updated