This repo implements the Denoising Diffusion Probabilistic Model(DDPM) on the MNIST dataset. The repo is just for me to better understand the DDPM so do not expect a high-performance model and do not trust the results too much. For someone who wants to re-implement the DDPM that is exactly the same as the model proposed in the the paper, I would recommend to check out the code from diffusers. In my repo, I only implement a vanilla Unet for modeling the
Train
python train_ddpm.py --config config/ddpm_mnist.yaml --task mnist
Inference The anime gif and the image
python sample.py
Images shown below is generated from a model which is trained on MNIST for 10K steps. Note that the result is not good enough. More iterations are needed to get a better result.