| 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
相关推荐
海底星光11 小时前
c#进阶疗法 -自定义鉴权fie888911 小时前
基于MATLAB的时变Copula实现方案冬奇Lab11 小时前
【Kotlin系列12】函数式编程在Kotlin中的实践:从Lambda到函数组合的优雅之旅写代码的【黑咖啡】11 小时前
Python中的Msgpack:高效二进制序列化库Jaxson Lin11 小时前
Java编程进阶:线程基础与实现方式全解析xiaoqider11 小时前
C++继承阿华hhh11 小时前
day4(IMX6ULL)<定时器>FuckPatience12 小时前
C# .csproj Baseoutputpath/Outputpath、AppendTargetFrameworkToOutputPath没有bug.的程序员12 小时前
Java锁优化:从synchronized到CAS的演进与实战选择初九之潜龙勿用12 小时前
C#实现导出Word图表通用方法之散点图