Single-Label Classification Model
Run a single-label classification model in a Workflow.
Last updated
Was this helpful?
Run a single-label classification model in a Workflow.
Last updated
Was this helpful?
The Single-Label Classification Model block lets you run a single-label classification model trained on or uploaded to Roboflow.
Single-label classification models return a category for an image. For example, you could use this block to:
Identify what defect is present in an image
Sort images into one or more categories
Identify the type of product in an image
You can run private models stored in your Workspace, or public models on Roboflow Universe.
You can run the Object Detection Model block on:
An image that you send to your Workflow
A video frame that you send to your Workflow
A cropped region of an image that is calculated in your Workflow (i.e. with a Crop block)
The Single-Label Classification Model block returns the class your model thinks most closely represents the contents of the image. The block also returns a confidence value showing how confident the model thinks it is in its result.
To see the results from your classification model plotted on an image, you need to use a Visualizer block. You may want to use the:
Classification Label Visualization block: Show labels from a classification model on an image.
Here is an example showing the results from a single-label classification model with a Classification label Visualization:
When you set up this block, you will be asked to choose a model from your Workspace:
To use a model in your Workspace, choose from the list of Your Models.
To use a Universe model, navigate to the Public Models tab, then paste in the Universe Model ID for the model you want to use.
You can then configure the block using the options available in the Workflows editor.
This block is useful for any Workflow that involves running a classification model.
If you need a zero-shot classification model, you may be interested in using CLIP, or trying a multimodal model like Claude.
Expand the card below to see the JSON data returned by this block.
You can also specify the ID of any model found on Universe.