Learning Blind Video Temporal Consistency

Wei-Sheng Lai, Jia-Bin Huang, Oliver Wang, Eli Shechtman, Ersin Yumer, Ming-Hsuan Yang

Abstract

Many image processing algorithms, such as artistic style transfer or colorization, produce significant temporal flickering when applied frame-by-frame to video. This paper introduces a deep recurrent network that automatically removes these artifacts. By learning a "blind" consistency model that does not require optical flow at test time, the proposed method achieves state-of-the-art stability at a processing speed of over 400 FPS, offering a 1,600x speedup over previous optimization-based approaches.

Introduction

Powerful image processing techniques—including style transfer, enhancement, and colorization—are often designed for single images. When applied to video sequences, the lack of temporal awareness leads to "flickering" because small variations in input frames result in large, inconsistent changes in output.

Existing solutions generally fall into two categories: task-specific redesigns that lack generalization, or gradient-domain optimization methods that are prohibitively slow due to their reliance on optical flow computation at test time. This research proposes a method that is both blind (applicable to any image effect) and fast (capable of real-time inference).

Architecture and Methodology

The core of the approach is a Recurrent Convolutional Network featuring a ConvLSTM layer. The network is designed to smooth processed frames while remaining faithful to the original video's motion.

The Recurrent Network

As shown in the architecture diagram below, the network processes four inputs at each time step $t$: the current and previous original frames ($I_t$, $I_{t-1}$), the current per-frame processed frame ($P_t$), and the network's own previous output ($O_{t-1}$). A two-stream input design with specific skip connections ensures that the network preserves the stylized effects of the processed frames without leaking low-level details (like original colors) from the source video.

Architecture of the proposed recurrent network, featuring the Image Transformation Network with ConvLSTM and the training-time loss components.

Loss Functions and Training

While the model does not require optical flow during inference, it utilizes it during training to calculate sophisticated loss functions:

  1. Perceptual Loss: Uses a pre-trained VGG network to ensure the output $O_t$ maintains the visual characteristics of the processed frame $P_t$.
  2. Short-term Temporal Loss: Minimizes warping errors between consecutive frames to ensure local smoothness.
  3. Long-term Temporal Loss: This is a critical innovation that anchors the current frame to the very first frame of a sequence. This prevents "drift" and maintains consistency over long durations.
The training scheme illustrating the interaction between short-term and long-term temporal losses across a sequence of frames.

Key Insights

  • Recurrence as a Flow Proxy: The deep recurrent network learns to internalize motion patterns, effectively acting as a proxy for explicit optical flow. This allows the model to maintain consistency without the heavy computational overhead of flow estimation during deployment.
  • The Long-term Anchor: Short-term consistency alone is insufficient for long videos as errors compound over time. The long-term loss ensures the video remains stable relative to a fixed reference point.
  • Task Agnosticism: Because the model is "blind," it generalizes across diverse applications, from Van Gogh-style animations to intrinsic image decomposition, without needing task-specific retraining.

Experimental Results

The model was trained on a combination of the DAVIS-2017 dataset and a custom collection from Videvo.net, totaling over 25,000 frames.

  • Performance: The system runs at 418 FPS on a Titan X GPU for 720p video. This represents a massive improvement over the previous state-of-the-art (0.25 FPS).
  • User Preference: In subjective studies, the proposed method was preferred 62% of the time. Users highlighted its ability to preserve artistic intent without the over-blurring common in optimization-based smoothing.

Conclusion and Future Work

This work demonstrates that temporal consistency can be learned as a general post-processing step. While highly effective, the model currently faces a stability-blur trade-off; extremely jittery inputs may result in slight blurring as the network compensates for instability. Future research may focus on improved perceptual models to better balance sharpness and temporal stability.

Summary updated

BibTeX
@inproceedings{lai2018learning,
  author = {Wei-Sheng Lai and Jia-Bin Huang and Oliver Wang and Eli Shechtman and Ersin Yumer and Ming-Hsuan Yang},
  title = {{Learning Blind Video Temporal Consistency}},
  booktitle = {European Conference on Computer Vision},
  year = {2018},
  doi = {10.1007/978-3-030-01267-0\_11},
}
Figure