Learning to Deblur using Light Field Generated and Real Defocus Images

Lingyan Ruan, Bin Chen, Jizhou Li, Miu-Ling LamCVPR 2022 · DOI

Introduction

Defocus blur is a common optical phenomenon occurring when objects reside outside a camera's depth of field. Restoring these images is a significant challenge because the blur is spatially varying: its magnitude and shape depend on the object's distance from the focal plane and its position relative to the lens.

The primary obstacle in training deep learning models for this task is the lack of high-quality, aligned data. Traditional "two-shot" methods (capturing one blurry and one sharp image) often suffer from pixel misalignment. Conversely, light field data provides perfectly aligned pairs but introduces a "synthetic aperture" blur that differs fundamentally from the Point Spread Function (PSF) of standard DSLR cameras.

Methodology: DRBNet and Domain Transfer

To address these challenges, the authors propose DRBNet, a novel architecture designed to handle spatially varying blur through Dynamic Residual Blocks (DRB).

The DRBNet architecture utilizes an encoder-decoder structure with Dynamic Residual Blocks to estimate per-pixel kernels and recover high-frequency details.

The Dynamic Residual Block (DRB)

Unlike standard convolutional layers that apply uniform filters, the DRB estimates unique "un-blurring" kernels for every pixel. It predicts both a standard residual (recovering lost content) and a dynamic residual (refining high-frequency edges via the learned kernel). This dual approach allows the network to reconstruct sharp images in a coarse-to-fine manner.

Two-Stage Training Strategy

The authors employ a clever domain transfer strategy to overcome the data bottleneck:

  1. Main Training (LFDOF): The model first learns the fundamental physics of deblurring using perfectly aligned light field images.
  2. Fine-Tuning (DPDD): The model is then refined on real DSLR images. To handle the inherent misalignment in real-world datasets, the authors use a VGG-based feature loss instead of pixel-wise loss, allowing the network to learn real-world textures without being penalized for slight spatial shifts.

Key Insights

  • PSF Discrepancy: Standard camera PSFs follow an Airy disk pattern, whereas light field synthetic blur resembles multiple Airy disks. This discrepancy explains why models trained solely on synthetic data often fail in real-world applications.
  • Feature Loss as a Bridge: Using feature-space loss during fine-tuning effectively transfers knowledge from the synthetic domain to the real domain, bypassing the need for perfectly aligned real-world training pairs.

Experimental Results

DRBNet achieves state-of-the-art performance across multiple benchmarks, including the newly introduced RealDOF dataset.

Qualitative comparison showing DRBNet's superior ability to restore sharp boundaries and legible text compared to existing methods like DPDNet and IFANet.

Quantitatively, DRBNet achieved a PSNR of 25.745 dB on the RealDOF test set, outperforming the previous state-of-the-art (IFANet) by over 1 dB. Qualitatively, the model excels at restoring sharp object boundaries and legible text, areas where competing models often produce "ghosting" artifacts. Despite its high performance, DRBNet remains computationally efficient with approximately 11.69M parameters.

Conclusion

By combining the precision of light field data with the realism of DSLR optics through a specialized architecture and training regime, DRBNet successfully bridges the gap in defocus deblurring. Future work will focus on extending these capabilities to handle complex, irregular blur shapes and hybrid motion-defocus blur.

Summary updated

BibTeX
@inproceedings{ruan2022learning,
  author = {Lingyan Ruan and Bin Chen and Jizhou Li and Miu-Ling Lam},
  title = {{Learning to Deblur using Light Field Generated and Real Defocus Images}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
  doi = {10.1109/cvpr52688.2022.01582},
}
Figure