Log inStart free
LESSON 25.C1 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

Text-to-image end to end

Watch three words become an 8×8 image, in a latent space and in pixels.


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

Go Pro · $8.25/mo
EXPLAINER · 25.C1 · PIPELINE BAYLATENT · c: 4 NUMBERS · TOP WEIGHT 54%
01
Stage 1 of 6 · Encode the prompt
A text encoder adds one vector per word into c. In the latent route, c weights the 12 codes.
Explain it simply

Each word has its own short list of numbers, set by hand here. Adding them gives one vector for the whole prompt. The rings on the plane show how much each training code counts for it. The code of ring top left counts most.

3 word rows of 4 cells add up to the vector c.

prompt, training dataguidance, worknoiseguesses, image
Text encoderword vectors25.07Start noise2 numbers25.06Guidancescale 325.07Sampler10 steps25.06DecoderVAE25.041st number2nd numberLatent plane: 2 numbers per pointText encoder: 4 numbers per wordring−0.500.870.000.00top0.000.001.000.00left0.000.000.001.00sum c−0.500.871.001.00set by hand (25.07)Text encoderword vectors25.07Start noise2 numbers25.06Guidancescale 325.07Sampler10 steps25.06DecoderVAE25.041st number2nd numberLatent plane: 2 numbers per pointText encoder: 4 numbers per wordring−0.500.870.000.00top0.000.001.000.00left0.000.000.001.00sum c−0.500.871.001.00set by hand (25.07)
Toy: 25.C1 images and VAE, hand-set words, exact latent denoiser, trained DiT
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
c=∑wvw\sy{c}{data}{c} = \textstyle\sum_{w} \sy{c}{data}{v_w}
c=(−0.50,0.87,1.00,1.00)c = (-0.50, 0.87, 1.00, 1.00)

The prompt vector adds up one vector per word.

Common mix-ups

MYTHEvery text-to-image model denoises the pixels.

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

Predict, then reveal
3 CHECKS · PRO
Q01With ring top left at scale 1, which route draws ring top left from this start noise?

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

PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
  • 5 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.