Deep Dynamic Scene Deblurring From Optical Flow

Jiawei Zhang, Jinshan Pan, Daoye Wang, Shangchen Zhou, Xing Wei, Furong Zhao, Jianbo Liu, Jimmy S. J. Ren

TL;DR

This paper introduces a novel deep learning approach for deblurring dynamic scenes by leveraging optical flow to guide spatially variant recurrent neural networks (RNNs). By estimating optical flow from consecutive blurry images, the method effectively guides the RNNs to remove blur in feature space, achieving state-of-the-art results in terms of accuracy, speed, and model size.

What Problem Does This Paper Address?

Restoring sharp images from blurry ones is a long-standing challenge in computer vision. Dynamic scenes, characterized by object motion and depth variations, introduce spatially variant blur that is difficult to model with traditional methods. Existing deep learning approaches often struggle with computational cost, large model sizes, or require multiple frames, making them less practical. This paper aims to address the challenge of effectively and efficiently deblurring dynamic scenes by developing an end-to-end trainable model that utilizes optical flow to guide the deblurring process.

Methods

The proposed method combines optical flow estimation with a spatially variant recurrent neural network (RNN) for dynamic scene deblurring. The core idea is to use optical flow, which captures motion information, to inform the deblurring process.

  1. Optical Flow Estimation: The paper utilizes FlowNets, a well-established network for optical flow estimation, to compute the flow between two consecutive blurry images. Crucially, this optical flow estimation network is also trained to predict the weights for the spatially variant RNNs at different scales.
  2. Spatially Variant RNNs for Deblurring: The deblurring network is built upon a U-Net architecture. Instead of directly deblurring in the image space, the spatially variant RNNs are integrated into the encoder part of the U-Net. These RNNs operate in the feature space, and their weights are dynamically generated based on the estimated optical flow. This allows the network to adapt to the spatially varying blur present in dynamic scenes.
  3. End-to-End Training: The entire network, encompassing both optical flow estimation and deblurring, is trained in an end-to-end manner. This allows for joint optimization and better integration of the two components.
  4. Mathematical Justification: The paper provides a mathematical analysis demonstrating the connection between optical flow and blur kernels, justifying why optical flow can effectively guide the deblurring process.

Datasets

The paper uses the publicly available video deblurring dataset from [33] for training and evaluation. They also mention using the same training set and settings as other methods for fair comparisons.

Key Insights and Ideas

  • Optical Flow as a Guide for Spatially Variant RNNs: The most significant insight is the effective use of optical flow not just for motion estimation but as a direct controller for the spatially variant RNN weights. This allows the network to "understand" the blur's direction and magnitude at each pixel and adapt its deblurring strategy accordingly.
  • RNNs in the Encoder for Feature-Level Deblurring: Placing the spatially variant RNNs within the encoder of the U-Net architecture is a key design choice. This allows the network to remove blur from features containing fine structures in the early layers, preventing the loss of detail and improving the final reconstruction.
  • End-to-End Training for Seamless Integration: Training the optical flow and deblurring components jointly is crucial. This ensures that the optical flow estimation is optimized for its role in guiding the deblurring, rather than being a separate, potentially suboptimal, pre-processing step.
  • Efficiency through Two-Frame Input: Compared to methods requiring many frames, using only two consecutive blurry images for optical flow estimation significantly reduces computational complexity and data requirements.

Key Results

  • Quantitative Performance: The proposed method achieves state-of-the-art results on the video deblurring dataset [33] in terms of PSNR and SSIM. For example, it achieves a PSNR of 30.58 and SSIM of 0.928, outperforming several recent methods.
  • Qualitative Performance: Visual results demonstrate that the proposed method generates significantly sharper images with fewer artifacts compared to existing methods, particularly in challenging regions with complex motion.
  • Efficiency: The method is more efficient than traditional non-deep learning methods and some deep learning approaches. It achieves a running time of 0.20 seconds per image (720x1280) with a relatively small model size (0.92M parameters), making it practical for real-world applications.
  • Ablation Studies: Experiments show that removing the RNNs or the optical flow guidance significantly degrades performance, highlighting the importance of both components. Replacing RNNs with simple concatenation also yields inferior results.

Limitations and Future Work

  • Significant Blur: The paper acknowledges that the method is less effective for images with very large blur effects. In such cases, the appearance differences between consecutive frames can be significant, leading to inaccurate optical flow estimation and thus impacting deblurring performance.
  • Future Work: The authors suggest that future work could explore bidirectional optical flow estimation to potentially improve results, although they note that current FlowNets implementations are optimized for efficiency with unidirectional flow. They also believe their deblurring method can facilitate downstream tasks like object detection and tracking.

Summary updated

BibTeX
@article{zhang2022deep,
  author = {Jiawei Zhang and Jinshan Pan and Daoye Wang and Shangchen Zhou and Xing Wei and Furong Zhao and Jianbo Liu and Jimmy S. J. Ren},
  title = {{Deep Dynamic Scene Deblurring From Optical Flow}},
  journal = {IEEE Trans. Circuits Syst. Video Technol.},
  year = {2022},
  url = {https://openreview.net/forum?id=WJNLA4O6CD},
}
Figure