You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2nd Place at the PhD Hackathon workshop in Generative Modeling (Zero-Shot Diffusion Based Image Restoration)
This repository is an implementation of the algorithm we pioneered, which involves hybridizing the DPS and DMPS algorithms. The DMPS algorithm offers speedups of 3x but relies on the uninformative prior assumption, which is unrealistic since most images are not proportional to Gaussian noise (Please refer to the poster for more details). We hybridized the DMPS algorithm with DPS by treating them as "exploration vs. exploitation" methods. This resulted in a speedup of the method (1-3x) in addition to enhanced robustness when evaluated on out-of-distribution (OOD) images.
Please refer to our poster for the full results and comparisons.
Team: Rajit Rajpal, Marcos Obando, Dolly Chen, Bernardin Tamo Amogou
Installation
Beforehand, ensure to download the code.
You can use git or download it as zip.
Run the following the command to create a fresh Python environment.
Do not forget to put the absolute path of the project in py_source/local_paths.py.
Similarly, put the absolute path to FFHQ checkpoint in /py_source/configs/ffhq_model.yaml
About the repository structure
The material folder contains external files such images, and model checkpoints.
Essential functions and classes to load pre-trained Diffusion Models, load images, display them, and initialize inverse problem are located in py_source/ folder.
In particular,
py_source/sampling/ folder contains examples of algorithm for solving inverse problem
py_source/utils.py contains functions to load model, images, and plot them
There are two notebooks to help you get started
demo_inverse_problems.ipynb shows how to define an inverse problem, solve it with an algorithm, and visualize the result
demo_evaluation.ipynb explains and illustrates the evaluation process of an algorithm
Note
To avoid installation conflicts, the code of the following repositories was moved/modified inside src folder