Giter Site home page Giter Site logo

denoising-diffusion-restoration-model's Introduction

[Re] Denoising Diffusion Restoration Models

Authors: Philipp Ahrendt, Dalim Wahby, Iga Pawlak

Implemented as a final project for Deep Learning, advanced course given at KTH Stockholm, academic year 2023/2024.


A reproduction of Denoising Diffusion Restoration Models (DOI) for solving linear inverse problems in imaging using Diffusion Models.

Abstract

In this work we aim to re-implement the Denoising Diffusion Restoration Models (DDRM), on selected tasks, such as 1) denosing, 2) deburring, and 3) super-resolution. Furthermore, we investigate the performance of a less-informed prior of different models. Additionally, we introduce a novel metric, that accesses the quality of a generated image, called the GIQA score. Our experiments yield similar results to those of the original paper and we found that a less-informed prior does not necessarily impact the performance of a model, thanks to a multitude of features being incorporated training data. However, for specialized tasks, the prior should be chosen carefully, since the generated images might lack realism. Furthermore, we found that the GIQA score returns realistic values, with the generated image having a score between the degraded and original score, implicating that it is a relevant measure for the quality of generated images. In conclusion, this work contributes to the understanding of DDRM, by re-implementing the method and clarifying yet unclear passages of the original paper.

File structure

├── DDRM
│   ├── data
│   │   ├── ddrm-exp-datasets-main
│   │   │   ├── ood
│   │   │   ├── ood_bedroom
│   │   │   ├── ood_celeba
│   │   │   └── ood_church_outdoor
│   │   └── image_net_1k
│   ├── experiments_image_net_data
│   │   ├── evaluation_deblurring_image_net.ipynb
│   │   ├── evaluation_denoising_image_net.ipynb
│   │   ├── evaluation_noiseless_deblurring_iamge_net.ipynb
│   │   └── evaluation_super_resolution_image_net.ipynb
│   ├── experiments_ood_data
│   │   ├── evaluation_deblurring.ipynb
│   │   ├── evaluation_denoising.ipynb
│   │   ├── evaluation_noiseless_deblurring.ipynb
│   │   ├── evaluation_super_resolution_noise.ipynb
│   │   └── evaluation_super_resolution_noiseless.ipynb
│   └── utils
│       ├── data_utils.py
│       ├── ddrm.py
│       └── degradation.py
└── README.md

Data

The data used for our expiments can be found here:

Acknowledgements

Original paper: Kawar et al. (2022) Denoising Diffusion Restoration Models

We use the pre-trained models from Pytorch Diffusion and create a class inheriting from their ´Diffusion´ class and modify the ´denoise´ function as well as ´denoising_step´ with implementations of modifications described in DDRM.

denoising-diffusion-restoration-model's People

Contributors

citrovin avatar pawlakiga avatar phiahr avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.