Log inStart free
LESSON 25.13 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

Video tokenization and video transformers

Watch a short clip become space-time tokens that attention reads across frames.


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.13 · VIDEO BAY8 FRAMES · 8 × 8 PX · BALL MOVING
01
Stage 1 of 6 · The clip
A video is a stack of 8 frames in time order. The ball moves right 1 pixel per frame.
Explain it simply

A video is a row of still pictures, one after another in time. Each picture here has 8 by 8 pixels. Watch the bright ball: it enters on the left and moves 1 pixel to the right in each frame.

Eight frames from left to right, each 8 by 8 pixels. The bright ball moves right by 1 pixel in each frame.

pixels, tokensgoes dim, negativeposition codesattentionnot read
12345678the clipframesx: 8 frames × 8 × 8 = 512 pixels12345678the clipframesx: 8 frames × 8 × 8 = 512 pixels
Toy: 8 frames of 8 × 8 pixels · hand-set weights, not trained
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
x∈RT×H×W\sy{x}{data}{x} \in \mathbb{R}^{T \times H \times W}
T=8,  H=W=8  ⇒  512 pixelsT = 8,\; H = W = 8 \;\Rightarrow\; 512 \text{ pixels}

The clip is a stack of T frames of H by W pixels.

Common mix-ups

MYTHAttention inside each frame can see the motion.

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

Predict, then reveal
3 CHECKS · PRO
Q01With a tubelet depth of 4 frames, how many tokens does the clip give?

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.