Install the required packages:
pip install -r requirements.txt
To train the DDPM on MNIST, run:
python train_mnist.py
To execute the DIP training and the DDPM reverse process, run:
python main.py
You will obtain two images: one generated by DDPM+DIP (ddpm_dip.png) and another by DDPM alone (ddpm_nodip.png).