Skip to content
Minute Campus.

How AI actually worksLesson 171 min

How does AI “see” a photo?

A language model cannot look at a photo directly, so the photo becomes something like words. The image is a grid of numbers, cut into small squares called patches. Each patch becomes a list of numbers, and the patches are lined up like a sentence. One consequence is that tiny details, such as small text in a large image, can be lost.

Remember

If a small detail matters, crop closer before asking an AI about it.

Sources

Checked at the source.

Every claim in the lesson was checked against these before it was recorded.

  1. 1An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleDosovitskiy and others · 2020 · read 4 Oct 2026A pure transformer applied directly to sequences of image patches can perform very well on image classification tasks.

Transcript

The lesson, word for word.

Read it at your own pace, or search the page for a term.

A language model reads words. So how can it look at your photo? It turns the photo into something like words. To a computer, a photo is a grid of numbers, a few for each pixel's colour. The model cuts that grid into small squares, called patches, like tiles in a mosaic. Each patch becomes a list of numbers, and the patches are lined up in a row, the way words sit in a sentence. Now the same machinery that handles a sentence can handle the picture. It compares every patch with the others and works out what belongs together: this edge, that fur, an ear. The idea comes from a twenty twenty paper titled: an image is worth sixteen by sixteen words. One consequence: tiny details, like small text in a large image, can be lost. If a detail matters, crop closer. Next: what does seven billion parameters mean?

Questions? Comment on the lesson on YouTube

New lessons every day.

Follow Minute Campus where you already scroll.