Log inStart free
LESSON 25.05 · 5 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

Diffusion: noising and denoising

Watch an image dissolve into noise, then a denoiser turn noise into an image.


Pro lesson. Stage 1 is free to watch. Pro opens all 5 stages, 3 controls and 3 checks, in this lesson and every other.

Go Pro · $8.25/mo
EXPLAINER · 25.05 · DIFFUSION BAY4 IMAGES · 8×8 PIXELS · PLUS
01
Stage 1 of 5 · Training images
A diffusion model learns from training images. This toy has 4 images of 8×8 pixels.
Explain it simply

You see four small pictures: a plus, a box, a cross and a triangle. Each pixel is minus 1 for blank or plus 1 for ink. The model's job is to make new pictures like these, starting from pure noise.

Four training images of 8 by 8 pixels: plus, box, cross and triangle. The plus is the one to noise.

image pixelsnoiseguesschosen step
training imagesplusboxcrosstrianglet = 0x_t: one frame per step, left to right4 images × 64 pixels, each pixel −1 or +1training imagesplusboxcrosstrianglet = 0x_t: one frame per step, left to right4 images × 64 pixels, each pixel −1 or +1
Toy: 4 images of 8×8 pixels, 8 steps. The denoiser is exact, not trained.
STAGE 1 / 5
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
x0∈{−1,1}64\sy{x}{data}{x_0} \in \{-1, 1\}^{64}
x0=xplusx_0 = x_{\text{plus}}

Each image is 64 pixel values, each one minus 1 or plus 1.

Common mix-ups

MYTHThe denoiser removes all the noise in one step.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01At step 8, is the guess one clear image or a blend?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

PRO LESSON · YOU WATCHED STAGE 1 OF 5
Unlock the full explainer
  • 4 more stages and 3 live controls
  • 2 mix-up cards and 3 predict-then-reveal checks
  • Watch it as a narrated video, in three voices
  • Every Pro lesson and capstone · 656 in total

$99 a year, or $15 a month. Cancel any time.