视觉语言模型
7 个节点
本页内容 7
询问图像
函数Asks a question about a picture.
签名
询问图像 -> 文本
模型: Vision Language Model
图像: Pixel Image
问题: 文本
系统提示: 文本
设置: Generation Settingsstring AskAboutImage(
VisionLanguageModel model,
PixelImage image,
string question,
string system,
GenerationSettings settings)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 模型 | Vision Language Model | — | A vision language model. |
| 图像 | Pixel Image | — | The picture. |
| 问题 | 文本 | — | What to ask. |
| 系统提示 | 文本 | — | What the model is told about its part first; empty for none. |
| 设置 | Generation Settings | — | How it chooses its words; empty for the model's own defaults. |
返回
| 回复 | 文本 |
- 所属发行版
- 元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 视觉语言模型
- 所属包
- 机器学习
询问多张图像
函数Asks a question about several pictures at once, shown in order before the question.
签名
询问多张图像 -> 文本
模型: Vision Language Model
图像: Pixel Image 数组
问题: 文本
系统提示: 文本
设置: Generation Settingsstring AskAboutImages(
VisionLanguageModel model,
PixelImage[] images,
string question,
string system,
GenerationSettings settings)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 模型 | Vision Language Model | — | A vision language model. |
| 图像 | Pixel Image 数组 | — | The pictures, such as Make Image Array gives. |
| 问题 | 文本 | — | What to ask, such as "How do these pictures differ?". |
| 系统提示 | 文本 | — | What the model is told about its part first; empty for none. |
| 设置 | Generation Settings | — | How it chooses its words; empty for the model's own defaults. |
返回
| 回复 | 文本 |
- 所属发行版
- 元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 视觉语言模型
- 所属包
- 机器学习
图像对话
函数Says a message in a conversation, showing a picture with it, and answers with the model's reply and the conversation with both added, to continue from.
签名
图像对话 -> (回复: 文本, 续接的对话: Conversation)
模型: Vision Language Model
消息: 文本
图像: Pixel Image
对话: Conversation
设置: Generation Settingsstring ChatAboutImage(
VisionLanguageModel model,
string message,
PixelImage image,
Conversation conversation,
GenerationSettings settings,
out Conversation continued)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 模型 | Vision Language Model | — | A vision language model. |
| 消息 | 文本 | — | What the user says. |
| 图像 | Pixel Image | — | The picture the message shows; empty for one that talks about pictures shown earlier. |
| 对话 | Conversation | — | The conversation so far, from Start Conversation or an earlier Chat About Image; empty to start one. |
| 设置 | Generation Settings | — | How it chooses its words; empty for the model's own defaults. |
返回
| 回复 | 文本 |
| 续接的对话 | Conversation |
- 所属发行版
- 元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 视觉语言模型
- 所属包
- 机器学习
描述图像
函数Asks the model to describe a picture: "Describe this image."
签名
描述图像 -> 文本
模型: Vision Language Model
图像: Pixel Image
设置: Generation Settingsstring DescribeImage(
VisionLanguageModel model,
PixelImage image,
GenerationSettings settings)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 模型 | Vision Language Model | — | A vision language model. |
| 图像 | Pixel Image | — | The picture. |
| 设置 | Generation Settings | — | How it chooses its words; empty for the model's own defaults. |
返回
| 描述 | 文本 |
- 所属发行版
- 元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 视觉语言模型
- 所属包
- 机器学习
加载视觉语言模型
函数Loads a vision language model and its processor from a Hugging Face Hub repository or a folder, downloading what is missing.
签名
加载视觉语言模型 -> Vision Language Model
模型: 文本
设备: Compute Device
精度: PrecisionVisionLanguageModel LoadVisionLanguageModel(
string model,
ComputeDevice device = ComputeDevice.Auto,
Precision precision = Precision.Auto)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 模型 | 文本 | — | A repository id such as HuggingFaceTB/SmolVLM-256M-Instruct, Qwen/Qwen2-VL-2B-Instruct or Qwen/Qwen3-VL-2B-Instruct, or a folder. |
| 设备 | Compute Device | 自动 | Where it runs. |
| 精度 | Precision | 自动 | The number format of its weights; Auto is Float32 on the CPU and the model's own on the GPU. |
返回
| 模型 | Vision Language Model |
- 所属发行版
- 元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 视觉语言模型
- 所属包
- 机器学习
创建图像数组
函数Up to eight pictures as one array, for Ask About Images; unconnected inputs are left out.
签名
创建图像数组 -> Pixel Image 数组
第一个: Pixel Image
第二个: Pixel Image
第三个: Pixel Image
第四个: Pixel Image
第五个: Pixel Image
第六个: Pixel Image
第七个: Pixel Image
第八个: Pixel ImagePixelImage[] MakeImageArray(
PixelImage first,
PixelImage second,
PixelImage third,
PixelImage fourth,
PixelImage fifth,
PixelImage sixth,
PixelImage seventh,
PixelImage eighth)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 第一个 | Pixel Image | — | The first picture, shown first. |
| 第二个 | Pixel Image | — | The second picture. |
| 第三个 | Pixel Image | — | The third picture. |
| 第四个 | Pixel Image | — | The fourth picture. |
| 第五个 | Pixel Image | — | The fifth picture. |
| 第六个 | Pixel Image | — | The sixth picture. |
| 第七个 | Pixel Image | — | The seventh picture. |
| 第八个 | Pixel Image | — | The eighth picture. |
返回
| 图像数组 | Pixel Image 数组 |
- 所属发行版
- 元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 视觉语言模型
- 所属包
- 机器学习
流式图像对话
函数Chat About Image, with the reply handed to a function piece by piece as it is written, so it can be shown before it is finished.
签名
流式图像对话 -> (回复: 文本, 续接的对话: Conversation)
模型: Vision Language Model
消息: 文本
图像: Pixel Image
对话: Conversation
设置: Generation Settings
文本回调: Action<文本>string StreamChatAboutImage(
VisionLanguageModel model,
string message,
PixelImage image,
Conversation conversation,
GenerationSettings settings,
Action<string> onText,
out Conversation continued)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 模型 | Vision Language Model | — | A vision language model. |
| 消息 | 文本 | — | What the user says. |
| 图像 | Pixel Image | — | The picture the message shows; empty for one that talks about pictures shown earlier. |
| 对话 | Conversation | — | The conversation so far; empty to start one. |
| 设置 | Generation Settings | — | How it chooses its words; empty for the model's own defaults. |
| 文本回调 | Action<文本> | — | Called with each new piece of the reply, in order. |
返回
| 回复 | 文本 |
| 续接的对话 | Conversation |
- 所属发行版
- 元编程(专业版)
- 可用的图种类
- 事件 例程 状态机状态
- 声明于
- 视觉语言模型
- 所属包
- 机器学习