AI Engineering · interactive
How image generation works
A diffusion model learns one skill: look at a noisy picture and guess the noise in it. To make an image, start from pure noise and remove a little at a time, nudged toward the prompt. Change the number of steps and the guidance, and watch a 16 × 16 picture appear.
- of “a house” in the final image
- 96%
- shading crushed to black or white
- 0%
Pure noise. Press play to remove it in 25 steps.
Prompt
1 2 Random noise, from a seed. The same seed and settings give the same picture; a new seed gives a new one.
x at t = 999: random Gaussian noise, seed 7
3 4 5
In production
Tools and technologies
Open diffusion pipelines expose the same knobs as this page: steps, guidance scale and seed.
Not tied to one language — use these names when you search docs or design a system.
- Hugging Face DiffusersSoftware
Diffusion pipelines and schedulers, including DDIM.
GitHub ↗ - ComfyUISoftware
A node editor for diffusion workflows.
GitHub ↗ - Denoising Diffusion Probabilistic ModelsStandard
Ho et al., 2020: the noise schedule and training objective.
Official site ↗ - DDIMStandard
Song et al., 2020: sampling in far fewer steps.
Official site ↗ - Classifier-Free Diffusion GuidanceStandard
Ho and Salimans, 2022: the guidance scale.
Official site ↗