Generate and edit images with Stable Diffusion

8 steps · about 2 h 25 min · Intermediate

  1. Learn what a diffusion model does (article, Wikipedia, 15 min)

    Explains the add-noise and learn-to-denoise idea behind image generators.

  2. Watch a prompt become an image step by step (interactive, Georgia Tech Polo Club, 15 min)

    Interactive view of text encoding, denoising steps and guidance scale.

  3. See the parts of Stable Diffusion (article, Jay Alammar, 25 min)

    Illustrated walk through the text encoder, U-Net and VAE.

  4. Read the latent diffusion paper abstract (article, arXiv (Rombach et al.), 10 min)

    Why diffusing in a compressed latent space made generation cheap enough to run locally.

  5. Generate a first image with Diffusers (tutorial, Hugging Face, 25 min)

    Loads a pipeline and produces an image from a prompt in a few lines.

  6. Trade speed for quality with schedulers (reference, Hugging Face, 15 min)

    Compares samplers and step counts for faster or cleaner results.

  7. Transform an existing picture with image-to-image (tutorial, Hugging Face, 20 min)

    Shows how strength controls how far the output strays from the input.

  8. Repaint part of an image with a mask (tutorial, Hugging Face, 20 min)

    Edits only the masked region while keeping the rest intact.