Loading lesson page...
Projection Layer for Modality Alignment
BuildPythonNo prerequisitesA vision encoder produces image tokens. A text decoder consumes text tokens. The two live in different vector spaces. A small two-layer MLP projects image tokens into the text embedding space, and a cosine alignment loss against a paired c...