IntermediateAbout 15 min

    Image Generation & Diffusion

    Read the full article on Substack

    6 min read.

    Drag a slider to watch an image emerge from pure noise, tour the latent-diffusion architecture, and tune guidance and step count against quality and cost.

    Think of it this way: A sculptor claims the statue was always inside the marble — they just removed everything that wasn't statue. Diffusion works the same trick on static: the model learned what images look like, so at each step it chips away a little of what doesn't look like your prompt, until only the picture remains.

    “sun setting over a green hill”
    NoiseImage

    Step 0 of 10. Pure noise. The model has not removed anything yet.

    Check your understanding

    Answer from memory before you scroll back up. Pulling an idea out of your head is what makes it stay there.

    Generate an image by denoising

    Sequence

    Order one text-to-image generation.

    Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.

    1. 1Drop a step here
    2. 2Drop a step here
    3. 3Drop a step here
    4. 4Drop a step here
    5. 5Drop a step here
    6. 6Drop a step here
    6 pieces left to place

    Quiz

    20 questions
    Question 1 of 20
    Score: 0

    What single task is a diffusion model trained on?

    Done with this lesson?

    Sign in free to keep your progress, streak and quiz scores.

    Keep going