Abstract
In many video restoration/translation tasks, image processing operations are naïvely extended to the video domain by processing each frame independently, disregarding the temporal connection of the video frames. This disregard for the temporal connection often leads to severe temporal inconsistencies. State-Of-The-Art (SOTA) techniques that address these inconsistencies rely on the availability of unprocessed videos to implicitly siphon and utilize consistent video dynamics to restore the temporal consistency of frame-wise processed videos which often jeopardizes the translation effect. We propose a general framework for this task that learns to infer and utilize consistent motion dynamics from inconsistent videos to mitigate the temporal flicker while preserving the perceptual quality for both the temporally neighboring and relatively distant frames without requiring the raw videos at test time. The proposed framework produces SOTA results on two benchmark datasets, DAVIS and videvo.net, processed by numerous image processing applications.
Introduction: The Challenge of Temporal Consistency
Applying image-to-image models—such as artistic style transfer, colorization, or dehazing—to video sequences often results in a significant drawback: high-frequency temporal flicker. When frames are processed independently, the model fails to account for the temporal continuity between them. Minor variations in lighting or object positioning lead to drastically different outputs for consecutive frames, creating a distracting visual experience.
Existing "blind temporal consistency" solutions typically require the original, unprocessed (raw) video during inference to serve as a guide. However, raw videos are frequently unavailable due to storage constraints or privacy concerns. Furthermore, over-reliance on the raw video can "dilute" the intended transformation, causing stylized outputs to regress toward the original appearance.
Proposed Framework: Disentangling Content and Motion
To address these issues, the authors introduce a task-agnostic framework that restores natural video dynamics without needing the raw input at test time. The architecture utilizes a two-branch design to separate content features from motion dynamics.
1. Content Branch
This branch processes the flickering frames through a standard encoder-decoder (UNet-like) structure to extract essential visual features.
2. Motion Branch
The "secret sauce" of this approach is the motion branch, which employs a fine-tuned PWC-Net for optical flow estimation. While standard flow networks often struggle with flickering inputs, this model is trained to ignore the "noise" of the flicker and identify the underlying natural dynamics of the scene.
3. Recurrent Bottleneck Block (RBB)
Features from both branches are fused and passed through a Recurrent Bottleneck using ConvLSTM. This component allows the model to maintain long-term consistency by "remembering" information from distant frames, rather than just correcting jitter between immediate neighbors.
Novel Training Losses
The framework is trained using specialized losses to ensure consistency without ground-truth videos:
- Flow Gradient Loss: Targets motion boundaries where flicker is most prominent by matching the gradients of the optical flow.
- Temporal Constancy Loss: A bi-directional penalty that enforces smoothness both forward and backward in time.
Evaluation and Results
The model was evaluated on the DAVIS and Videvo.net datasets across various tasks, including style transfer, colorization, and image enhancement.
Key Findings
- Performance: The method achieves SOTA results in Temporal Warping Error, effectively reducing pixel "jumps" between frames.
- User Preference: In a study with 36 participants across 150 scenes, the proposed method was preferred 41.1% of the time, outperforming established methods like Bonneel et al. and Deep Video Prior (DVP).
- Efficiency: With a runtime of approximately 0.22 seconds per frame, the model is highly competitive and suitable for practical applications.
- Preservation of Effect: By avoiding raw video guidance at test time, the model better preserves the intended artistic or stylistic effects compared to previous methods.
Conclusion
This framework represents a significant step forward in blind video restoration. By focusing on underlying motion dynamics rather than raw pixel guidance, it effectively mitigates flicker while maintaining the integrity of the processed content. While the model currently faces challenges with very low frame-rate videos or extremely fine stylistic details, it provides a robust, efficient, and task-agnostic solution for modern video processing pipelines.
Summary updated