DiffBIR: Toward Blind Image Restoration with Generative Diffusion Prior

Xinqi Lin, Jingwen He, Ziyan Chen, Zhaoyang Lyu, Bo Dai, Fanghua Yu, Yu Qiao, Wanli Ouyang, Chao DongECCV 2024

Abstract

Blind Image Restoration (BIR) aims to recover high-quality images from inputs with unknown and complex degradations. We present DiffBIR, a powerful two-stage framework that leverages the generative prior of Stable Diffusion. By decoupling the restoration process into a degradation removal stage and an information regeneration stage, DiffBIR effectively handles diverse real-world degradations while allowing for a controllable balance between fidelity and quality.

Introduction

Restoring low-quality (LQ) images where the degradation process—comprising blur, noise, and compression—is unknown remains a significant challenge in computer vision. Traditional GAN-based models, such as Real-ESRGAN, often produce over-smoothed results or unnatural textures. Conversely, while diffusion models possess immense generative power, they are prone to interpreting input noise as actual image content, leading to artifacts. DiffBIR addresses these issues by utilizing a pre-trained diffusion model as a generative prior within a structured two-stage pipeline.

Methods

The DiffBIR framework consists of two primary stages designed to separate the cleaning of the image from the synthesis of new details:

  1. Stage I: Degradation Removal: A restoration module (RM) is trained using a simple Mean Squared Error (MSE) loss to remove noise and blur. This stage produces a "clean" but potentially blurry version of the image, serving as a reliable starting point for generation.
  2. Stage II: Information Regeneration: This stage employs a novel architecture called IRControlNet. It takes the cleaned image from Stage I and utilizes a pre-trained Stable Diffusion model to "hallucinate" realistic high-frequency details like textures and fine structures.
The overall pipeline of DiffBIR, illustrating the two-stage process: the Restoration Module for cleaning and the Generation Module (IRControlNet) for detail synthesis.

Key technical innovations include Latent Space Alignment, where IRControlNet uses a VAE encoder to project the condition image into the diffusion latent space, and Region-Adaptive Restoration Guidance. The latter allows for spatially varying control over the generation process, maintaining high fidelity in flat areas while encouraging creativity in textured regions.

Key Results

DiffBIR achieves state-of-the-art (SOTA) performance across blind super-resolution (BSR), blind face restoration (BFR), and blind image denoising (BID). Qualitatively, it produces significantly sharper and more realistic textures compared to GAN-based methods.

Visual comparison demonstrating the advantage of the DiffBIR two-stage approach. Directly using LQ images as conditions can lead to artifacts, whereas DiffBIR's decoupled pipeline ensures cleaner and more realistic restoration.

Quantitatively, DiffBIR leads in metrics such as the MUSIQ score (69.42 on RealSRSet), outperforming both Real-ESRGAN and other diffusion-based competitors like StableSR. Its ability to generalize is evident in face restoration tasks, where it produces high-resolution facial details without specific fine-tuning on face datasets. Furthermore, the framework provides users with a "guidance scale" slider during inference to adjust the balance between mathematical fidelity and visual quality.

Conclusion

DiffBIR demonstrates that decoupling degradation removal from generative refinement is essential for robust blind image restoration. While the computational cost of diffusion sampling remains a challenge compared to one-pass GAN models, the framework's superior visual quality and user-controllable fidelity mark a significant advancement in the field. Future work may explore extending this approach to video restoration and more complex atmospheric degradations like heavy rain or fog.

Summary updated

BibTeX
@inproceedings{lin2024diffbir,
  author = {Xinqi Lin and Jingwen He and Ziyan Chen and Zhaoyang Lyu and Bo Dai and Fanghua Yu and Yu Qiao and Wanli Ouyang and Chao Dong},
  title = {{DiffBIR: Toward Blind Image Restoration with Generative Diffusion Prior}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-73202-7\_25},
}
Figure