Skip to content

Semantic Segmentation Model

Class: RoboflowSemanticSegmentationModelBlockV1

Source: inference.core.workflows.core_steps.models.roboflow.semantic_segmentation.v1.RoboflowSemanticSegmentationModelBlockV1

Run inference on a semantic segmentation model hosted on or uploaded to Roboflow.

Semantic segmentation assigns a class label to every pixel in the image, producing a dense segmentation mask rather than per-object bounding boxes or instance masks.

You can query any model that is private to your account, or any public model available on Roboflow Universe.

You will need to set your Roboflow API key in your Inference environment to use this block. To learn more about setting your Roboflow API key, refer to the Inference documentation.

Type identifier

Use the following identifier in step "type" field: roboflow_core/roboflow_semantic_segmentation_model@v1to add the block as as step in your workflow.

Properties

Name Type Description Refs
name str Enter a unique identifier for this step..
model_id str Roboflow model identifier..

The Refs column marks possibility to parametrise the property with dynamic values available in workflow runtime. See Bindings for more info.

Available Connections

Compatible Blocks

Check what blocks you can connect to Semantic Segmentation Model in version v1.

Input and Output Bindings

The available connections depend on its binding kinds. Check what binding kinds Semantic Segmentation Model in version v1 has.

Bindings
Example JSON definition of step Semantic Segmentation Model in version v1
{
    "name": "<your_step_name_here>",
    "type": "roboflow_core/roboflow_semantic_segmentation_model@v1",
    "images": "$inputs.image",
    "model_id": "my_project/3"
}