Instance Segmentation Model¶
v2¶
Class: RoboflowInstanceSegmentationModelBlockV2
(there are multiple versions of this block)
Warning: This block has multiple versions. Please refer to the specific version for details. You can learn more about how versions work here: Versioning
Run inference on an instance segmentation model hosted on or uploaded to Roboflow.
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_instance_segmentation_model@v2
to 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.. | ✅ |
confidence |
float |
Confidence threshold for predictions.. | ✅ |
class_filter |
List[str] |
List of accepted classes. Classes must exist in the model's training set.. | ✅ |
iou_threshold |
float |
Minimum overlap threshold between boxes to combine them into a single detection, used in NMS. Learn more.. | ✅ |
max_detections |
int |
Maximum number of detections to return.. | ✅ |
class_agnostic_nms |
bool |
Boolean flag to specify if NMS is to be used in class-agnostic mode.. | ✅ |
max_candidates |
int |
Maximum number of candidates as NMS input to be taken into account.. | ✅ |
mask_decode_mode |
str |
Parameter of mask decoding in prediction post-processing.. | ✅ |
tradeoff_factor |
float |
Post-processing parameter to dictate tradeoff between fast and accurate.. | ✅ |
disable_active_learning |
bool |
Boolean flag to disable project-level active learning for this block.. | ✅ |
active_learning_target_dataset |
str |
Target dataset for active learning, if enabled.. | ✅ |
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 Instance Segmentation Model
in version v2
.
- inputs:
Line Counter
,Keypoint Detection Model
,Halo Visualization
,OpenAI
,Stability AI Image Generation
,Model Comparison Visualization
,Keypoint Visualization
,Crop Visualization
,Image Blur
,Bounding Box Visualization
,Distance Measurement
,Line Counter
,Roboflow Dataset Upload
,Size Measurement
,Template Matching
,Mask Visualization
,Image Slicer
,Instance Segmentation Model
,VLM as Classifier
,Instance Segmentation Model
,JSON Parser
,Ellipse Visualization
,Email Notification
,OpenAI
,Dynamic Zone
,Slack Notification
,VLM as Detector
,Twilio SMS Notification
,Webhook Sink
,Label Visualization
,Google Vision OCR
,Stability AI Outpainting
,CSV Formatter
,Single-Label Classification Model
,Polygon Visualization
,Buffer
,Identify Changes
,Model Monitoring Inference Aggregator
,Roboflow Custom Metadata
,Reference Path Visualization
,Florence-2 Model
,VLM as Detector
,Anthropic Claude
,OCR Model
,Camera Calibration
,Image Preprocessing
,Image Contours
,Line Counter Visualization
,Dimension Collapse
,Florence-2 Model
,Single-Label Classification Model
,LMM For Classification
,Corner Visualization
,Clip Comparison
,Pixel Color Count
,Stitch Images
,Depth Estimation
,SIFT
,Blur Visualization
,Image Convert Grayscale
,Background Color Visualization
,Image Slicer
,Dynamic Crop
,Local File Sink
,Perspective Correction
,Stitch OCR Detections
,Circle Visualization
,Triangle Visualization
,Dot Visualization
,SIFT Comparison
,CogVLM
,Multi-Label Classification Model
,Object Detection Model
,VLM as Classifier
,LMM
,Color Visualization
,Stability AI Inpainting
,Classification Label Visualization
,OpenAI
,Absolute Static Crop
,Image Threshold
,Detections Consensus
,Keypoint Detection Model
,Llama 3.2 Vision
,Pixelate Visualization
,Trace Visualization
,Camera Focus
,Roboflow Dataset Upload
,Grid Visualization
,Clip Comparison
,Google Gemini
,PTZ Tracking (ONVIF)
.md),SIFT Comparison
,Multi-Label Classification Model
,Relative Static Crop
,Object Detection Model
,Polygon Zone Visualization
,Identify Outliers
- outputs:
Line Counter
,Keypoint Detection Model
,Florence-2 Model
,Halo Visualization
,Single-Label Classification Model
,Corner Visualization
,Detections Merge
,Model Comparison Visualization
,Crop Visualization
,Time in Zone
,Background Color Visualization
,Blur Visualization
,Bounding Box Visualization
,Dynamic Crop
,Line Counter
,Distance Measurement
,Perspective Correction
,Circle Visualization
,Triangle Visualization
,Byte Tracker
,Dot Visualization
,Detections Filter
,Size Measurement
,Roboflow Dataset Upload
,Mask Visualization
,SmolVLM2
,Path Deviation
,Detections Classes Replacement
,Instance Segmentation Model
,Instance Segmentation Model
,Multi-Label Classification Model
,Object Detection Model
,Segment Anything 2 Model
,Ellipse Visualization
,Color Visualization
,Stability AI Inpainting
,Bounding Rectangle
,Byte Tracker
,Dynamic Zone
,Moondream2
,Detection Offset
,Byte Tracker
,Webhook Sink
,Detections Consensus
,Time in Zone
,Keypoint Detection Model
,Pixelate Visualization
,Trace Visualization
,Detections Stabilizer
,Qwen2.5-VL
,Label Visualization
,Roboflow Dataset Upload
,Overlap Filter
,Single-Label Classification Model
,Polygon Visualization
,Velocity
,PTZ Tracking (ONVIF)
.md),Multi-Label Classification Model
,Model Monitoring Inference Aggregator
,Detections Stitch
,Roboflow Custom Metadata
,Object Detection Model
,Path Deviation
,Florence-2 Model
,Detections Transformation
Input and Output Bindings¶
The available connections depend on its binding kinds. Check what binding kinds
Instance Segmentation Model
in version v2
has.
Bindings
-
input
images
(image
): The image to infer on..model_id
(roboflow_model_id
): Roboflow model identifier..confidence
(float_zero_to_one
): Confidence threshold for predictions..class_filter
(list_of_values
): List of accepted classes. Classes must exist in the model's training set..iou_threshold
(float_zero_to_one
): Minimum overlap threshold between boxes to combine them into a single detection, used in NMS. Learn more..max_detections
(integer
): Maximum number of detections to return..class_agnostic_nms
(boolean
): Boolean flag to specify if NMS is to be used in class-agnostic mode..max_candidates
(integer
): Maximum number of candidates as NMS input to be taken into account..mask_decode_mode
(string
): Parameter of mask decoding in prediction post-processing..tradeoff_factor
(float_zero_to_one
): Post-processing parameter to dictate tradeoff between fast and accurate..disable_active_learning
(boolean
): Boolean flag to disable project-level active learning for this block..active_learning_target_dataset
(roboflow_project
): Target dataset for active learning, if enabled..
-
output
inference_id
(inference_id
): Inference identifier.predictions
(instance_segmentation_prediction
): Prediction with detected bounding boxes and segmentation masks in form of sv.Detections(...) object.model_id
(roboflow_model_id
): Roboflow model id.
Example JSON definition of step Instance Segmentation Model
in version v2
{
"name": "<your_step_name_here>",
"type": "roboflow_core/roboflow_instance_segmentation_model@v2",
"images": "$inputs.image",
"model_id": "my_project/3",
"confidence": 0.3,
"class_filter": [
"a",
"b",
"c"
],
"iou_threshold": 0.4,
"max_detections": 300,
"class_agnostic_nms": true,
"max_candidates": 3000,
"mask_decode_mode": "accurate",
"tradeoff_factor": 0.3,
"disable_active_learning": true,
"active_learning_target_dataset": "my_project"
}
v1¶
Class: RoboflowInstanceSegmentationModelBlockV1
(there are multiple versions of this block)
Warning: This block has multiple versions. Please refer to the specific version for details. You can learn more about how versions work here: Versioning
Run inference on an instance segmentation model hosted on or uploaded to Roboflow.
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_instance_segmentation_model@v1
to 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.. | ✅ |
confidence |
float |
Confidence threshold for predictions.. | ✅ |
class_filter |
List[str] |
List of accepted classes. Classes must exist in the model's training set.. | ✅ |
iou_threshold |
float |
Minimum overlap threshold between boxes to combine them into a single detection, used in NMS. Learn more.. | ✅ |
max_detections |
int |
Maximum number of detections to return.. | ✅ |
class_agnostic_nms |
bool |
Boolean flag to specify if NMS is to be used in class-agnostic mode.. | ✅ |
max_candidates |
int |
Maximum number of candidates as NMS input to be taken into account.. | ✅ |
mask_decode_mode |
str |
Parameter of mask decoding in prediction post-processing.. | ✅ |
tradeoff_factor |
float |
Post-processing parameter to dictate tradeoff between fast and accurate.. | ✅ |
disable_active_learning |
bool |
Boolean flag to disable project-level active learning for this block.. | ✅ |
active_learning_target_dataset |
str |
Target dataset for active learning, if enabled.. | ✅ |
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 Instance Segmentation Model
in version v1
.
- inputs:
Line Counter
,Keypoint Detection Model
,Halo Visualization
,OpenAI
,Stability AI Image Generation
,Model Comparison Visualization
,Keypoint Visualization
,Crop Visualization
,Image Blur
,Bounding Box Visualization
,Distance Measurement
,Line Counter
,Roboflow Dataset Upload
,Size Measurement
,Template Matching
,Mask Visualization
,Image Slicer
,Instance Segmentation Model
,VLM as Classifier
,Instance Segmentation Model
,JSON Parser
,Ellipse Visualization
,Email Notification
,OpenAI
,Dynamic Zone
,Slack Notification
,VLM as Detector
,Twilio SMS Notification
,Webhook Sink
,Label Visualization
,Google Vision OCR
,Stability AI Outpainting
,CSV Formatter
,Single-Label Classification Model
,Polygon Visualization
,Buffer
,Identify Changes
,Model Monitoring Inference Aggregator
,Roboflow Custom Metadata
,Reference Path Visualization
,Florence-2 Model
,VLM as Detector
,Anthropic Claude
,OCR Model
,Camera Calibration
,Image Preprocessing
,Image Contours
,Line Counter Visualization
,Dimension Collapse
,Florence-2 Model
,Single-Label Classification Model
,LMM For Classification
,Corner Visualization
,Clip Comparison
,Pixel Color Count
,Stitch Images
,Depth Estimation
,SIFT
,Blur Visualization
,Image Convert Grayscale
,Background Color Visualization
,Image Slicer
,Dynamic Crop
,Local File Sink
,Perspective Correction
,Stitch OCR Detections
,Circle Visualization
,Triangle Visualization
,Dot Visualization
,SIFT Comparison
,CogVLM
,Multi-Label Classification Model
,Object Detection Model
,VLM as Classifier
,LMM
,Color Visualization
,Stability AI Inpainting
,Classification Label Visualization
,OpenAI
,Absolute Static Crop
,Image Threshold
,Detections Consensus
,Keypoint Detection Model
,Llama 3.2 Vision
,Pixelate Visualization
,Trace Visualization
,Camera Focus
,Roboflow Dataset Upload
,Grid Visualization
,Clip Comparison
,Google Gemini
,PTZ Tracking (ONVIF)
.md),SIFT Comparison
,Multi-Label Classification Model
,Relative Static Crop
,Object Detection Model
,Polygon Zone Visualization
,Identify Outliers
- outputs:
Line Counter
,Halo Visualization
,OpenAI
,Stability AI Image Generation
,Model Comparison Visualization
,Keypoint Visualization
,Crop Visualization
,Image Blur
,Bounding Box Visualization
,Distance Measurement
,Line Counter
,Roboflow Dataset Upload
,Size Measurement
,Mask Visualization
,Instance Segmentation Model
,Detections Classes Replacement
,Instance Segmentation Model
,CLIP Embedding Model
,Ellipse Visualization
,Email Notification
,Bounding Rectangle
,OpenAI
,Dynamic Zone
,Slack Notification
,Twilio SMS Notification
,Byte Tracker
,Webhook Sink
,Label Visualization
,Google Vision OCR
,Stability AI Outpainting
,Cache Get
,Polygon Visualization
,Velocity
,Model Monitoring Inference Aggregator
,Roboflow Custom Metadata
,Reference Path Visualization
,Florence-2 Model
,Anthropic Claude
,Detections Transformation
,Image Preprocessing
,Line Counter Visualization
,Florence-2 Model
,LMM For Classification
,Clip Comparison
,Corner Visualization
,Detections Merge
,Pixel Color Count
,Time in Zone
,Perception Encoder Embedding Model
,Background Color Visualization
,Blur Visualization
,Dynamic Crop
,Local File Sink
,Perspective Correction
,Circle Visualization
,Triangle Visualization
,Dot Visualization
,Byte Tracker
,Detections Filter
,CogVLM
,Path Deviation
,Segment Anything 2 Model
,LMM
,Color Visualization
,OpenAI
,Classification Label Visualization
,Stability AI Inpainting
,Cache Set
,Byte Tracker
,Detection Offset
,Image Threshold
,Detections Consensus
,Time in Zone
,Llama 3.2 Vision
,Pixelate Visualization
,Trace Visualization
,Detections Stabilizer
,Roboflow Dataset Upload
,YOLO-World Model
,Google Gemini
,Overlap Filter
,PTZ Tracking (ONVIF)
.md),SIFT Comparison
,Detections Stitch
,Path Deviation
,Polygon Zone Visualization
Input and Output Bindings¶
The available connections depend on its binding kinds. Check what binding kinds
Instance Segmentation Model
in version v1
has.
Bindings
-
input
images
(image
): The image to infer on..model_id
(roboflow_model_id
): Roboflow model identifier..confidence
(float_zero_to_one
): Confidence threshold for predictions..class_filter
(list_of_values
): List of accepted classes. Classes must exist in the model's training set..iou_threshold
(float_zero_to_one
): Minimum overlap threshold between boxes to combine them into a single detection, used in NMS. Learn more..max_detections
(integer
): Maximum number of detections to return..class_agnostic_nms
(boolean
): Boolean flag to specify if NMS is to be used in class-agnostic mode..max_candidates
(integer
): Maximum number of candidates as NMS input to be taken into account..mask_decode_mode
(string
): Parameter of mask decoding in prediction post-processing..tradeoff_factor
(float_zero_to_one
): Post-processing parameter to dictate tradeoff between fast and accurate..disable_active_learning
(boolean
): Boolean flag to disable project-level active learning for this block..active_learning_target_dataset
(roboflow_project
): Target dataset for active learning, if enabled..
-
output
inference_id
(string
): String value.predictions
(instance_segmentation_prediction
): Prediction with detected bounding boxes and segmentation masks in form of sv.Detections(...) object.
Example JSON definition of step Instance Segmentation Model
in version v1
{
"name": "<your_step_name_here>",
"type": "roboflow_core/roboflow_instance_segmentation_model@v1",
"images": "$inputs.image",
"model_id": "my_project/3",
"confidence": 0.3,
"class_filter": [
"a",
"b",
"c"
],
"iou_threshold": 0.4,
"max_detections": 300,
"class_agnostic_nms": true,
"max_candidates": 3000,
"mask_decode_mode": "accurate",
"tradeoff_factor": 0.3,
"disable_active_learning": true,
"active_learning_target_dataset": "my_project"
}