Diffusion models

Step 5 of 13 in Generative AI · Build · Hard

Learn to remove noise one small step at a time; start from pure noise and denoise to generate. Stable training and high quality.

Build it

  1. Tiny DDPM

    DDPM on 2D toy data then MNIST with a small U-Net.

    Done when: Samples match the toy distribution; digits recognizable.

Case study: Stable Diffusion

  • Ran diffusion in a VAE's latent space, cutting compute enough for consumer GPUs.
  • Open weights led to an explosion of tools and fine-tunes.
  • Training on scraped images triggered copyright lawsuits.

Read the case study

Resources

Earn this star

On the map, you log what you built. Finish the step and its star lights.

Open this step on the map