Abstract
Defocus blur is inherently spatially-varying, making it a complex restoration task for traditional and deep learning methods alike. We introduce the Iterative Filter Adaptive Network (IFAN), a novel end-to-end framework designed for efficient single-image defocus deblurring. IFAN shifts the paradigm from direct pixel regression to predicting pixel-wise deblurring filters. By utilizing an Iterative Adaptive Convolution (IAC) layer that applies stacks of small separable filters, the model achieves a large effective receptive field while maintaining a low parameter count. Our approach, supervised with dual-pixel data for disparity and reblurring tasks, achieves state-of-the-art performance on the DPDD benchmark while being significantly faster and lighter than existing solutions.
Introduction
Defocus blur occurs when scene points fall outside a camera's depth of field, resulting in blur magnitudes that vary with depth. Traditional restoration methods often struggle with real-world optics due to oversimplified kernel models. While recent deep learning models like DPDNet have improved results, they often require significant computational resources and struggle with large blur kernels due to limited receptive fields. The Iterative Filter Adaptive Network (IFAN) addresses these challenges by predicting adaptive filters tailored to each pixel's specific blur characteristics.
Methodology
The core of our approach lies in two innovations: the IFAN architecture and the Iterative Adaptive Convolution (IAC) layer.
Iterative Filter Adaptive Network (IFAN)
Unlike standard networks that regress sharp pixel values, IFAN predicts a stack of filters for every pixel. This allows the network to adapt its restoration strategy locally based on the estimated blur. As shown in the architecture overview, the system includes a filter encoder and a disparity map estimator to guide the filter prediction process.
Iterative Adaptive Convolution (IAC)
To handle large blurs without the memory overhead of large 2D kernels, we propose the IAC layer. Instead of a single large filter, IAC predicts and applies $N$ stacks of small separable filters (e.g., $1 \times k$ and $k \times 1$). Iteratively applying these filters effectively expands the receptive field to cover large defocus areas while exploiting non-linearities between iterations.
Training with Dual-Pixel Supervision
Although IFAN operates on a single image at test time, it leverages dual-pixel (DP) data during training. DP sensors provide a subtle stereo effect, which we use to supervise two auxiliary tasks:
- Defocus Disparity Estimation: The network learns to predict depth-related disparity, which is directly proportional to blur magnitude.
- Reblurring: By learning to re-generate the blurry input from the deblurred output, the network ensures its predicted filters are physically consistent with the scene's blur geometry.
Experimental Results
We evaluated IFAN on the Dual-Pixel Defocus Deblurring (DPDD) dataset and a newly introduced Real Depth of Field (RealDOF) dataset.
- Performance: IFAN achieved a PSNR of 25.37 dB on DPDD, surpassing DPDNet (25.23 dB) despite using only a single input image compared to DPDNet's dual-pixel input.
- Efficiency: With only 10.5M parameters, IFAN is roughly one-third the size of DPDNet (35.2M).
- Speed: Inference takes approximately 0.014 seconds on an RTX 3090, representing a 30x speedup over previous state-of-the-art methods.
Conclusion
The Iterative Filter Adaptive Network provides a highly efficient and effective solution for single-image defocus deblurring. By combining pixel-wise filter prediction with an iterative separable convolution strategy, IFAN handles complex, spatially-varying blurs with minimal computational cost. Future work will explore extending this iterative framework to other restoration tasks such as motion deblurring.
Summary updated