Note! This is still work in progress and may contain errors. If you lke to contribute, please leave a pull request.
A simple (~700 line) PyTorch implementation of the "Variational Diffusion Models" paper by Kingma et al. Much of it was inspired by the lucidrains and revsic repositories.
This repository is documented on my blog post. If any part of either the code or the blog is not well-documented. Please let me know!
Please also see references below.
- Python 3.9
- CUDA 11.5
git clone https://github.com/DavidRuhe/simple-variational-diffusion-models.git
cd simple-variational-diffusion-models
source activate_py3.sh
python main.py
- Network adjustments reported in Appendix.
- Fourier features.
- Reproduce paper results.