| 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
相关推荐
小羊没烦恼!3 天前
初探性能优化——2个月到4小时的性能提升神仙别闹3 天前
基于C#+MySQL实现(WinForm)个人聊天室软件伞伞悦读3 天前
【第38期】Python 模块与包详解:import、from、模块搜索路径、包结构和 __init__C语言小火车3 天前
C/C++ 为什么需要编译器?霍霍的袁3 天前
【C++】map 和 set 的使用 | 从用法到底层kybs19913 天前
全球灾害数据分析可视化 毕业设计-附源码66794孙启超3 天前
【AI开发之Rust】第 11 课:智能指针与内部可变性此生决int3 天前
深入理解C++系列(20)——C++11(下)CoderYanger3 天前
A.每日一题:835. 图像重叠伞伞悦读3 天前
【第37期】Python JSON 与配置详解:序列化、反序列化、嵌套结构和配置文件