completed Jan 2018 - Nov 2018

FlowChroma: A Deep Recurrent Neural Network and a Benchmark for Automated Video Colorization

#Deep Learning #Computer Vision #Video Colorization #LSTM #Benchmark #Dataset
FlowChroma: A Deep Recurrent Neural Network and a Benchmark for Automated Video Colorization

Overview

Colorizing grayscale images has been widely studied, especially with the rise of deep learning, but colorizing black-and-white videos has received far less attention. Applying an image colorization technique frame by frame treats every frame as an independent task, ignoring the contextual links between consecutive frames. The result is a lack of temporal coherence: objects change color from frame to frame, producing flickering videos that look unrealistic and inconsistent. Video colorization is also computationally expensive, and approaches that rely on user scribbles do not scale to videos with thousands of frames.

FlowChroma formally defines the video colorization problem and addresses it with a novel, fully automated deep recurrent encoder-decoder architecture. Frames are represented in the CIE L*a*b* color space, and the network predicts the a* and b* chrominance channels from a sequence of luminance frames. A CNN encoder extracts local features from each frame, a pre-trained Inception-ResNet-v2 network supplies high-level semantic information about objects and environments, and a two-layer stacked LSTM captures temporal features across the frame sequence. A custom fusion layer combines these spatial and temporal features before a CNN decoder produces the colorized output, and a sliding-window inference algorithm allows videos of arbitrary length to be processed. Alongside the model, the project introduces a benchmark and an annotated dataset for evaluating video colorization.

Motivation & Objectives

Large amounts of early video content were shot in black and white, and colorizing it is far cheaper than reproducing it in color. Colorized footage is also useful for enhancing CCTV video and for media broadcasting. With deep learning reviving image colorization, the project set out to explore combining Convolutional and Recurrent Neural Networks so that temporal information is kept when coloring consecutive frames. The work was organised around the following objectives:

Fully Automated Colorization – To build a framework where a user can supply a black-and-white video and receive a colorized video without manual intervention.

Consistent Coloring – To maintain temporal coherence between frames, including across scene changes, so that objects keep the same colors throughout a video.

Appropriate Coloring – To assign natural, plausible colors to identified objects, such as green tones for grass.

LSTM-based Architecture – To research and develop an LSTM-based deep learning architecture for video colorization, an approach not previously used in the colorization domain.

Video Colorization Benchmark – To create a benchmark for rating the colorization of black-and-white videos, since no standard evaluation framework existed.

Impact & Results

Performance

FlowChroma was trained for roughly 50 hours on 50,000 preprocessed five-frame videos from the FCVID dataset, using an AWS EC2 instance with four NVIDIA Tesla P100 GPUs, and evaluated by colorizing 1,000 videos against the Deep Koalarization image colorization baseline. On the spatial coherence metric (VGG classification accuracy on colorized frames), FlowChroma scored 60.8% on plants and vegetation, 58.5% on landscapes and 52.6% on people, compared with 56.1%, 58.3% and 51.4% for Deep Koalarization, showing that colorization quality is kept intact. On the temporal coherence metric, FlowChroma improved on the baseline in the a* chrominance channel by 6.27% for plants and vegetation and 5.72% for landscapes, and in the b* channel by 4.92% and 1.61% respectively. Qualitatively, the model maintained the overall color palette of a scene across frames and avoided the color bleeding and blue patches seen in the frame-by-frame baseline, while sudden new objects, many objects in a scene and fast movements remained sources of inconsistency.

Key Contributions

FlowChroma Architecture

A deep recurrent encoder-decoder network that uses stacked LSTMs, for the first time in the colorization domain, together with an Inception-ResNet-v2 feature extractor and a fusion layer to keep colors consistent across video frames.

Formalisation of Video Colorization

A formal definition of the video colorization problem and an analysis of the factors that cause flicker, including object frequency and surface complexity, movement frequency and speed, and context changes.

Video Colorization Benchmark and Dataset

A benchmark that measures both spatial colorization quality and temporal colorization quality, supported by a dataset annotated with a concept hierarchy and flicker-related tags through a purpose-built web annotation tool.

Real-world Impact

FlowChroma shows that recurrent architectures can reduce flickering in automated video colorization without degrading per-frame colorization quality, and the accompanying benchmark gives the research community a standard way to evaluate video colorization systems. The work has practical relevance for restoring classic black-and-white films and documentaries, enhancing CCTV footage for law enforcement, and providing colored content for media broadcasts.

Gallery

FlowChroma architecture: CNN encoder, Inception-ResNet-v2 high-level feature extractor, stacked LSTM, fusion layer and CNN decoder

FlowChroma architecture: CNN encoder, Inception-ResNet-v2 high-level feature extractor, stacked LSTM, fusion layer and CNN decoder

Colorization of a video sequence - rows show the grayscale input, Deep Koalarization, FlowChroma and the ground truth

Colorization of a video sequence - rows show the grayscale input, Deep Koalarization, FlowChroma and the ground truth

Herd of elephants: FlowChroma (top) keeps the dry tone of the scene consistent, while the baseline (bottom) flickers between green and brown

Herd of elephants: FlowChroma (top) keeps the dry tone of the scene consistent, while the baseline (bottom) flickers between green and brown

Project Team

C

C. Abeysinghe

Undergraduate Researcher

Worked on GAN-based colorization experiments, dataset preprocessing, the sliding-window inference algorithm, cloud configuration and model training.

L

L.M. Jayathilake

Undergraduate Researcher

Focused on designing the video colorization benchmark, including the temporal colorization quality measure, and on collecting the FCVID dataset and building the data annotation tool.

C

C.L. Wijayakoon

Undergraduate Researcher

Contributed to cloud setup, data preprocessing, model training and results analysis, as well as the dataset, benchmark and data annotation tool.

T

T.K. Wijesinghe

Undergraduate Researcher

Focused on model implementation, including the Deep Koalarization baseline rework and the FlowChroma network, and on results analysis.