Diffusion Basics for Beginners
Read a little, play a little. No scary maths, and no rush.
Sculpting from static
Imagine a TV tuned to static, then slowly resolving into a photograph — first blobs, then shapes, then whiskers on a cat. Diffusion models learn exactly this reverse process: start from pure noise, remove a little noise, repeat 30–50 times, each step conditioned on your prompt nudging what emerges. Training taught the model what "less noisy version of a cat photo" looks like at every noise level.
Prompts, seeds, and control knobs
- Prompt: "cinematic portrait, golden hour" — specific style words beat paragraphs. Study prompts you admire; vocabulary is the skill.
- Seed: same prompt + same seed = same layout with varied details. Fix the seed while iterating, randomize when exploring.
- Guidance scale: how hard the model obeys the prompt. Too low ignores you; too high produces garish, oversaturated images.
- Steps: more steps = finer detail, diminishing returns past ~30–50.
Steering away: negative prompts
"Blurry, extra fingers, watermark, distorted hands" — listing what you don't want is often more powerful than describing what you do. Models have strong priors toward common artifacts; negatives push against them.
Precise control: ControlNet and friends
Need that pose, that room layout? ControlNet feeds structure (edges, depth maps, skeletons) alongside the prompt, so composition stops being luck. Inpainting repaints masked regions; img2img restyles an existing image. Generation becomes art direction, not lottery.
A worked example: product images
A small shop wants lifestyle images of its ceramic mug without a photo shoot.
- Lock the layout. Pick a seed that produces a good composition, then keep it fixed while refining the prompt.
- Refine with style words. "Soft morning light, wooden table, shallow depth of field" changes the mood without moving the layout.
- Repel the artifacts. A negative prompt removes blur, warped handles, and stray text.
- Keep the real product. ControlNet, fed a depth map from an actual photo of the mug, keeps the true shape instead of a plausible invented one.
- Fix and finish. Inpainting repairs one odd reflection, and an upscaler raises the final resolution.
The skill is less "write the perfect prompt" and more running a controlled process, one variable at a time.
Text inside images
Diffusion models have long struggled to render legible text, often producing near-letters that look right at a glance and wrong up close. Newer models handle short text much better, but for logos, prices, and anything brand-critical, add the text afterwards in a design tool where every letter is exactly right.
Beyond still images
The same idea of starting from noise and removing it step by step also drives many audio and video generators. Video adds a hard extra requirement: the frames must stay consistent with each other, so a person's face and clothes do not change from one second to the next.
Safety is part of the pipeline
Filters on prompts and outputs, invisible watermarks marking AI origin, and rights checks on training-style mimicry ("in the style of a living artist") — beginners shipping image features should know these exist before users ask.
Remember this
- Noise → denoise steps, prompt steers, seed freezes, negatives repel.
- Control structure explicitly when composition matters; don't roll dice.
Check your understanding
5 questions · first-try answers earn the most XP
My notes
Saved in this browser. Highlight a line above and save it, or write it in your own words.
Nothing saved yet. Your highlights will live here.
References
Finished reading?
Ticking it here also ticks the chapter in the sidebar, the section count and your streak — it is all one number.
End of Multimodal & Generative AI
Take the section checkpoint
A short mixed quiz on all 2 chapters, to check you are ready to move on.
Related chapters
Spotted a mistake or want a topic covered? Report an issue