Skip to content

AditMeh/minimal-ddim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minimal-ddim

Implementing a minimal version of DDIM on MNIST.

Requirements

diffusers pytorch torchvision

How to use

Training DDPM

The following script puts visualizations in visuals/ and checkpoints in checkpoints/

python train_ddpm.py

Sampling with DDIM

python ddim.py --checkpoint <path to checkpoint>

Results

The cool thing about DDIM is you can verify whether it works by checking whether applying forward and then backwards diffusion results in the original image.

Here's my test:

Original

alt text

Forward diffusion

alt text

Backward diffusion

alt text

About

Implementing a minimal version of DDIM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages