| Step | Data Format | Example Matrix Shape | Detailed Explanation |
|---|---|---|---|
| 1. Raw Image Input | Pixel Matrix | [1, 3, 224, 224] |
A single 224x224 3-channel (RGB) color image. |
| 2. ViT Patching | Patch Sequence | [1, 196, 768] |
The image is sliced into 196 patches of size 16x16 and flattened into vectors. |
| 3. ViT Output | Visual Feature Sequence | [1, 196, 768] |
Processed by the ViT encoder to obtain a feature sequence containing global information. |
| 4. Connector Projection | Aligned Visual Features | [1, 196, 4096] |
Visual features are projected into a 4096-dimensional space to align with the LLM's word embedding dimension. |
| 5. Text Embedding | Tokenized Text Features | [1, 5, 4096] |
The question "What is in the image?" is tokenized and embedded into five 4096-dimensional vectors. |
| 6. Multimodal Concatenation | Input Visual + Text Joint Features | [1, 201, 4096] |
Concatenating 196 visual tokens and 5 text tokens along the sequence dimension. |
| 7. LLM Generation Output | Generated Token ID Sequence | [1, 7] |
The LLM generates a 7-token answer based on the joint features. |
【无标题】
翩若惊鸿_2026-01-02 21:51
相关推荐
点心的游戏开发世界35 分钟前
Unity C# 脚本学习笔记:命名空间与 using2601_962071571 小时前
【Java报错已解决】org.springframework.beans.factory.BeanCreationException淡海水2 小时前
07-04-并发-ConcurrentBag-T-工作窃取WorkStealing算法点心的游戏开发世界2 小时前
Unity C# 脚本学习笔记:泛型CS_Zero3 小时前
C语言sizeof是函数吗?-今昭-4 小时前
《V2V 迁移实战:将 VMware 虚拟机转为 OpenStack 可用 Glance qcow2 镜像》黑马程序员毕设6 小时前
基于Java的医院药品管理系统的优化设计与实现_Twink1e6 小时前
openJiuwen 实训营 Day 1 · WorkSwarm 入门教程公子小六6 小时前
基于.NET的Windows窗体编程之WinForms滑块与上下控件问天_观心6 小时前
大模型微调学习(一)