视觉模型
4 个节点
本页内容 4
图像分类
函数The labels that best describe a picture, best first, from those the classifier knows.
签名
图像分类 -> (标签: 文本数组, 分数: 数字数组)
分类器: Image Classifier
图像: Pixel Image
前几名: 整数string[] ClassifyImage(
ImageClassifier classifier,
PixelImage image,
int top,
out double[] scores)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 分类器 | Image Classifier | — | An image classifier. |
| 图像 | Pixel Image | — | The picture. |
| 前几名 | 整数 | — | How many labels to give. |
返回
| 标签 | 文本数组 |
| 分数 | 数字数组 |
- 所属发行版
- 元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 视觉模型
- 所属包
- 机器学习
零样本图像分类
函数Scores a picture against labels written in words, best first; the scores add up to 1 across the labels given.
签名
零样本图像分类 -> (标签: 文本数组, 分数: 数字数组)
分类器: Zero Shot Image Classifier
图像: Pixel Image
标签: 文本数组
模板: 文本string[] ClassifyImageZeroShot(
ZeroShotImageClassifier classifier,
PixelImage image,
string[] labels,
string template,
out double[] scores)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 分类器 | Zero Shot Image Classifier | — | A zero-shot image classifier. |
| 图像 | Pixel Image | — | The picture. |
| 标签 | 文本数组 | — | The candidate labels, such as "a cat", "a dog", "a car". |
| 模板 | 文本 | — | The sentence each label is put into before it is compared; {} stands for the label. |
返回
| 标签 | 文本数组 |
| 分数 | 数字数组 |
- 所属发行版
- 元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 视觉模型
- 所属包
- 机器学习
加载图像分类器
函数Loads an image classifier and its image processor from a Hub repository or a folder.
签名
加载图像分类器 -> Image Classifier
模型: 文本
设备: Compute Device
精度: PrecisionImageClassifier LoadImageClassifier(
string model,
ComputeDevice device = ComputeDevice.Auto,
Precision precision = Precision.Auto)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 模型 | 文本 | — | A repository id such as google/vit-base-patch16-224, or a folder. |
| 设备 | Compute Device | 自动 | Where it runs. |
| 精度 | Precision | 自动 | The number format of its weights. |
返回
| 分类器 | Image Classifier |
- 所属发行版
- 元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 视觉模型
- 所属包
- 机器学习
加载零样本图像分类器
函数Loads a zero-shot image classifier (an image and a text model trained together) from a Hub repository or a folder.
签名
加载零样本图像分类器 -> Zero Shot Image Classifier
模型: 文本
设备: Compute Device
精度: PrecisionZeroShotImageClassifier LoadZeroShotImageClassifier(
string model,
ComputeDevice device = ComputeDevice.Auto,
Precision precision = Precision.Auto)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 模型 | 文本 | — | A repository id such as openai/clip-vit-base-patch32 or google/siglip-base-patch16-224, or a folder. |
| 设备 | Compute Device | 自动 | Where it runs. |
| 精度 | Precision | 自动 | The number format of its weights. |
返回
| 分类器 | Zero Shot Image Classifier |
- 所属发行版
- 元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 视觉模型
- 所属包
- 机器学习