Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

33 Commits

Folders and files

Repository files navigation

Denoising Diffusion Pytorch

Implementation of DDPM (https://arxiv.org/abs/2006.11239) in Pytorch with class conditioning.

Model architecture:

  • Class conditioned on label.
  • UNet with 4 downsample, 4 upsample blocks. Self-attention at the 16x16 resolution and bottleneck layer.
  • Pre-activation for all resnet blocks.

Training

accelerate launch train.py

Sample Image Grid

Generate samples and render a grid of images into one image.

No Labels

python sample_grid.py --checkpoint_path=<path> --rows=8 --cols=8

Labels

python sample_grid.py --checkpoint_path=<path> --cols=8 --num_classes=10 --labels_list="airplane,automobile,bird,cat,deer,dog,frog,horse,ship,truck"

Save Images to Folder

Save a large number of images to a destination folder for running eval metrics.

python sample_images.py --checkpoint_path=<path> --output_dir=<dir> --num_images=50000 --batch_size=2500

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages