hkproj/pytorch-stable-diffusion

Stable Diffusion written from scratch in PyTorch

Jupyter Notebookโ˜… 1.1k๐Ÿ‘๏ธ CV & ML (old tutorials)

What

Stable Diffusion (VAE, CLIP encoder, U-Net, DDPM sampler) reimplemented from scratch, with a long companion video.

What's inside: Model code plus a demo notebook that loads the official v1.5 weights.