Image restoration via diffusion models research paper
Top 66.0% on sourcepulse
DiffPIR offers a novel approach to plug-and-play image restoration by leveraging denoising diffusion models as generative priors. This method targets researchers and practitioners in computer vision and image processing, aiming to achieve state-of-the-art results in tasks like super-resolution, deblurring, and inpainting with fewer neural function evaluations (NFEs) than prior diffusion-based methods.
How It Works
DiffPIR integrates diffusion models into the traditional plug-and-play iterative framework. Instead of relying on discriminative Gaussian denoisers, it uses pre-trained unconditional diffusion models to estimate $\mathbf{x}^{(t)}0$ from $\mathbf{x}{t}$ at each timestep $t$. This denoised estimate is then refined by solving the data sub-problem, effectively combining the generative capabilities of diffusion models with the iterative refinement of plug-and-play methods. This approach is advantageous as it inherits the strong generative prior of diffusion models while maintaining a manageable NFE count.
Quick Start & Requirements
pip install -r requirements.txt
after cloning the repository.bash download.sh
.https://github.com/LeviBorodenko/motionblur
is needed.python main_ddpir_sisr.py
, python main_ddpir_deblur.py
, or python main_ddpir_inpainting.py
, or via configuration files with python main_ddpir.py --opt configs/<task>.yaml
.Highlighted Details
Maintenance & Community
The project is associated with authors from ETH Zurich and is partly supported by the ETH Zurich General Fund, Alexander von Humboldt Foundation, and Huawei Fund. No specific community channels (Discord/Slack) or active development roadmap are mentioned in the README.
Licensing & Compatibility
The repository does not explicitly state a license. The code is based on OpenAI's Guided Diffusion and DPIR, which may have their own licensing terms. Users should verify compatibility for commercial or closed-source use.
Limitations & Caveats
The README indicates that training new diffusion models requires following OpenAI's Guided Diffusion repository. Compatibility with specific hardware or software versions beyond standard Python dependencies is not detailed. The project was presented at a 2023 workshop, suggesting it may be relatively new.
8 months ago
1 day