Abstract
We propose a novel end-to-end learning-based approach for single image defocus deblurring. The proposed approach is equipped with a novel Iterative Filter Adaptive Network (IFAN) that is specifically designed to handle spatially-varying and large defocus blur. For adaptively handling spatially-varying blur, IFAN predicts pixel-wise deblurring filters, which are applied to defocused features of an input image to generate deblurred features. For effectively managing large blur, IFAN models deblurring filters as stacks of small-sized separable filters. Predicted separable deblurring filters are applied to defocused features using a novel Iterative Adaptive Convolution (IAC) layer. We also propose a training scheme based on defocus disparity estimation and reblurring, which significantly boosts the deblurring quality. We demonstrate that our method achieves state-of-the-art performance both quantitatively and qualitatively on real-world images.
Introduction
Defocus deblurring—the process of restoring sharpness to out-of-focus regions—is a challenging task because blur is typically non-uniform. In real-world photography, the Point Spread Function (PSF) varies spatially based on object depth and lens characteristics. Traditional kernel-based methods often rely on rigid mathematical models that fail to capture these complexities, while standard deep learning architectures like UNets can struggle with large blur magnitudes or produce unwanted artifacts like ringing.
The Iterative Filter Adaptive Network (IFAN)
The core of our approach is the Iterative Filter Adaptive Network (IFAN). Unlike standard Filter Adaptive Networks (FANs) that predict a unique $K \times K$ filter for every pixel—leading to explosive computational costs for large blur—IFAN introduces a more efficient mechanism. It predicts pixel-wise filters that are applied to defocused features to generate deblurred counterparts.
As shown in the architecture above, the system integrates a feature extractor, a filter predictor, and a reconstructor. The filter predictor is responsible for estimating the spatially-varying filters required to reverse the defocus effect at each pixel.
Iterative Adaptive Convolution (IAC)
To handle large blur efficiently, we introduce the Iterative Adaptive Convolution (IAC) layer. Instead of a single large 2D kernel, IAC models deblurring filters as stacks of $N$ iterations of small, separable 1D filters ($k \times 1$ and $1 \times k$).
By stacking these simple operations, the network achieves a massive receptive field (e.g., $35 \times 35$) with a fraction of the parameters and memory overhead required by traditional dense kernels. This iterative approach allows the model to approximate complex deconvolution kernels while remaining computationally lean.
Multi-Task Training Scheme
To ensure the predicted filters are physically consistent and robust, we employ a multi-task training scheme:
- Defocus Disparity Estimation: By utilizing dual-pixel data during training, the network learns to estimate a disparity map. Since disparity is proportional to blur magnitude, this task forces the model to understand the underlying scene geometry.
- Reblurring: The network is trained to "invert" its deblurring filters. It takes the sharp ground truth and attempts to recreate the original blurry image. If the model can accurately reblur an image, its predicted deblurring filters are more likely to be physically accurate.
Experimental Evaluation
We evaluated IFAN on several benchmarks, including the DPDD dataset and a new RealDOF test set featuring perfectly aligned blurry and sharp pairs.
- Performance: IFAN achieved a state-of-the-art PSNR of 25.37 on the DPDD dataset, surpassing previous leaders like DPDNet.
- Efficiency: The model is remarkably efficient, utilizing only 10.48M parameters (compared to DPDNet’s 35.25M) and processing images in just 0.014 seconds.
- Visual Quality: Qualitatively, IFAN excels at restoring fine textures and reducing artifacts in areas of high defocus that typically appear as "mush" in other methods.
Conclusion
IFAN demonstrates that iterative applications of separable 1D filters provide a powerful and efficient framework for handling spatially-varying defocus blur. By combining this architecture with physics-informed training tasks like reblurring and disparity estimation, we achieve superior deblurring quality with significantly lower computational requirements than existing state-of-the-art models.
Summary updated