Skip to content

A clean and simple implementation of Diffusion Models with Stochastic Differential Equations

License

Notifications You must be signed in to change notification settings

DwaraknathT/diffusion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Diffusion Models with SDEs

This is an attempt to implement diffusion based generative models (Score-based models, DDPMs) using Stochastic Differential Equations from the paper Score-Based Generative Modeling through Stochastic Differential Equations

What is in here?

  • Variance Preserving SDE
  • Probability Flow sampling
  • MNIST, CIFAR 10, 100 with a simple UNet model as score function (time dependence is not yet implemented)

Training

python main.py --c 'configs/vpsde_mnist.yaml'

Next steps..

  • Implement Variance Exploding SDE, Sub-VPSDE
  • Implement sampling by solving reverse SDE
  • Maximum likelihood based training using likelihood weighting (from this paper)

Samples

Image

About

A clean and simple implementation of Diffusion Models with Stochastic Differential Equations

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages