Deep Dynamic Scene Deblurring from Optical Flow

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

TL;DR

This paper introduces an end-to-end deep learning framework that uses optical flow to guide spatially variant Recurrent Neural Networks (RNNs) for dynamic scene deblurring. By mathematically linking optical flow to blur kernels, the authors demonstrate that temporal information from just two consecutive frames can significantly improve restoration accuracy while maintaining a small model size and high processing speed.

What Problem Does This Paper Address?

Capturing sharp images in dynamic scenes is difficult. Unlike "uniform" blur caused by simple camera shake, dynamic scenes contain multiple moving objects at different depths, resulting in spatially variant blur. Mathematically, this means you can't just apply one "inverse" filter to the whole image.

Existing solutions often fall into two camps:

  1. Traditional Optimization: These methods estimate blur kernels and then perform non-blind deconvolution. They are mathematically grounded but computationally expensive and hard to train end-to-end.
  2. Deep CNNs: While powerful, standard Convolutional Neural Networks (CNNs) require massive receptive fields to "see" and remove large blurs. This typically leads to multi-scale architectures that are bulky, slow, and sometimes prone to artifacts in regions where there is no motion.

The authors seek a middle ground: a lightweight, end-to-end network that uses motion information (optical flow) to intelligently guide the deblurring process.

Methods

The proposed architecture consists of two main components integrated into a U-Net structure:

  1. Optical Flow Estimation Network: Based on FlowNet, this sub-network takes two consecutive blurry images and estimates optical flow at multiple scales. Crucially, it doesn't just output flow; it also predicts the weights for the RNNs in the deblurring branch.
  2. RNN-based Deblurring Network: Instead of standard convolutions, this branch uses Spatially Variant RNNs (SV-RNNs). These RNNs process features in four directions (up, down, left, right). Because RNNs have an effectively infinite receptive field, they can handle large blurs with very few parameters.
An overview of the proposed network architecture showing the flow estimation and deblurring branches.

The key innovation is the coupling: the optical flow provides the "instructions" (weights) to the RNN on how to move and aggregate information to undo the motion blur at each specific pixel.

Datasets

The model was trained and evaluated primarily on the Video Deblurring Dataset introduced by Su et al. [33]. This dataset provides sequences of blurry frames paired with sharp ground truths, allowing the network to learn temporal dependencies. For training, the authors used data augmentation techniques like random cropping, rotation, and color permutation to improve robustness.

Key Insights and Ideas

  • The Flow-Kernel Connection: The authors provide a mathematical proof showing that a pixel-wise blur kernel can be represented as a function of optical flow. This justifies using flow as a direct guide for deblurring rather than just a side-input.
  • RNNs for Receptive Field: Standard CNNs need many layers to see a 50x50 pixel blur. An RNN can "see" the entire row or column in one pass. This allows the model to stay small (8.7M parameters) while outperforming much larger models.
  • Encoder-side RNNs: The authors found that placing RNNs in the encoder of the U-Net is more effective than the decoder. In the decoder, features become "sparse" (mostly zeros), which makes it harder for RNNs to propagate useful information.
  • Flow as a Filter: By using flow to generate RNN weights, the network avoids "over-deblurring" static regions. If the flow is zero, the RNN weights adjust accordingly, preventing the artifacts often seen in other deep learning methods.
Comparison showing how optical flow helps avoid artifacts in static regions like bridge supports.

Key Results

The proposed method achieves state-of-the-art (SOTA) performance across several metrics:

  • Accuracy: On the Su et al. benchmark, it achieved a PSNR of 30.58 dB, surpassing previous leaders like Tao et al. (29.95 dB) and Nah et al. (29.51 dB).
  • Efficiency: It processes a 720p image in just 0.20 seconds on a Titan Xp GPU. While some specialized models are faster, they often have significantly lower accuracy or much higher parameter counts.
  • Qualitative Quality: As shown in Figure 2 and 3, the method produces sharper edges and clearer text compared to competitors, which often leave behind "ghosting" or blurry residuals.
Qualitative comparison on benchmark datasets showing clearer restoration of cars and background details.

Limitations and Future Work

The primary limitation occurs when the blur is extremely large. If the motion between two frames is so severe that the images look completely different, the optical flow estimation fails. Since the deblurring relies on this flow, the final restoration suffers from structural distortions and residual blur.

Future work could involve exploring more robust flow estimation techniques or incorporating longer-term temporal information (more than two frames) to handle extreme motion cases.

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. 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