Diffusion utilities for consistent basis transforms, schedules, and sampling. Built around whitened and unwhitened spaces with data, score and epsilon conversions.
This code implements the methods described in the paper: GUD: Generation with Unified Diffusion
First, install the package with pip install gud (depending on your setup, probably in a new virtual environment, or instead with uv).
Alternatively, it can be installed directly from the github repository via pip install git+https://github.com/mathisgerdes/unified-diffusion.git.
The tutorial notebooks require additional packages beyond the core dependencies. Install them with:
pip install optax matplotlib torchvisionOr individually:
optax- Gradient processing and optimization library for JAXmatplotlib- Plotting librarytorchvision- Computer vision datasets and transformsipython- Interactive Python shell (for notebook display utilities)