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.
Loss Functions and Training
While the model does not require optical flow during inference, it utilizes it during training to calculate sophisticated loss functions:
- Perceptual Loss: Uses a pre-trained VGG network to ensure the output $O_t$ maintains the visual characteristics of the processed frame $P_t$.
- Short-term Temporal Loss: Minimizes warping errors between consecutive frames to ensure local smoothness.
- 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.
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