Notebook Tutorials for Diffusion Models and Score-based Models using PyTorch.
You will need:
conda
Git
Optional:
NVIDIA Drivers
andCUDA >= 12.1
Clone this repository (requires git ssh keys)
git clone https://github.com/caetas/GenTutorials.git
cd gentutorials
conda env create -f environment.yml
conda activate python3.10
You can setup the virtualenv by running the following commands:
python -m venv .venv-dev
source .venv-dev/bin/activate
python -m pip install --upgrade pip setuptools
python -m pip install -r requirements.txt
You can setup the virtualenv by running the following commands:
python -m venv .venv-dev
.venv-dev/Scripts/Activate.ps1
python -m pip install --upgrade pip setuptools
python -m pip install -r requirements.txt
The Diffusion Notebook
covers Denoising Diffusion Probabilistic Models (DDPMs) and Denoising Diffusion Implicit Models (DDIMs).
The Score-Based Notebook
covers Score Matching Models (SMs) and Flow Matching Models (FMs).
Please also consider checking the GenerativeZoo
.