【无标题】

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.
相关推荐
小努蛋15 分钟前
linux编译openresty异常问题,lua_cjson.c:706:5: 错误: ‘for‘ 循环初始化声明只在 C99 或 C++ 模式下允许
开发语言·lua·openresty
qz_Serene29 分钟前
C++:类和对象(上)
开发语言·c++
唐青枫36 分钟前
别把 ImmutableArray 当成只读 List:C#.NET 不可变数组深入详解
c#·.net
西安景驰电子1 小时前
《PTP精确时间协议系列》第一篇:从原理到应用,全面解读IEEE 1588
linux·运维·服务器·开发语言·网络·windows·php
ctlover1 小时前
Python文件操作
开发语言·python
luj_17681 小时前
塔防牌:策略与卡牌的智慧碰撞
服务器·c语言·开发语言·经验分享·算法
wuyk5552 小时前
3.链表:用指针串联的动态数据结构
c语言·开发语言·数据结构·链表
weixin_383196472 小时前
java基础面试题@Autowired和@Resource区别
java·开发语言
言乐63 小时前
Python游戏水平测试辅助系统2
开发语言·windows·python·游戏·django