cloneofsimo/minDiffusion
cloneofsimo/minDiffusion has 1,209 GitHub stars and 158 forks. GitHot measured 0 stars in 24 hours, +2 in 7 days, and +2 in 15 days. Last checked 2026-11-09 16:37 UTC. Last push 2022-06-28.
Self-contained, minimalistic implementation of diffusion models with Pytorch.
Measured star growth
- in 24h
- 0
- in 7 days
- +2
- in 15 days
- +2
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalminDiffusion
Goal of this educational repository is to provide a self-contained, minimalistic implementation of diffusion models using Pytorch.
Many implementations of diffusion models can be a bit overwhelming. Here, superminddpm : under 200 lines of code, fully self contained implementation of DDPM with Pytorch is a good starting point for anyone who wants to get started with Denoising Diffusion Models, without having to spend time on the details.
Simply:
$ python superminddpm.py
Above script is self-contained. (Of course, you need to have pytorch and torchvision installed. Latest version should suffice. We do not use any cutting edge features.)
If you want to use the bit more refactored code, that runs CIFAR10 dataset:
$ python train_cifar10.py
Above result took about 2 hours of training on single 3090 GPU. Top 8 images are generated, bottom 8 are ground truth.
Here is another example, trained on 100 epochs (about 1.5 hours)
Currently has:
- Tiny implementation of DDPM
- MNIST, CIFAR dataset.
- Simple unet structure. + Simple Time embeddings.
- CelebA dataset.
TODOS
- DDIM
- Classifier Guidance
- Multimodality
Updates!
- Using more parameter yields better result for MNIST.
- More comments in superminddpm.py
Explore related projects
tensorflow/tensorflow
An Open Source Machine Learning Framework for Everyone
201,400 starshuggingface/transformers
🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.
168,668 starsAUTOMATIC1111/stable-diffusion-webui
Stable Diffusion web UI
165,261 starsComfy-Org/ComfyUI
The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
145,835 stars