視覺語言模型
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 |
- 所屬發行版
- 元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- 視覺語言模型
- 所屬包
- 機器學習