Model Comparison Visualization¶
Class: ModelComparisonVisualizationBlockV1
The ModelComparisonVisualization block draws all areas
predicted by neither model with a specified color,
lets overlapping areas of the predictions shine through,
and colors areas predicted by only one model with a distinct color.
Type identifier¶
Use the following identifier in step "type" field: roboflow_core/model_comparison_visualization@v1to add the block as
as step in your workflow.
Properties¶
| Name | Type | Description | Refs |
|---|---|---|---|
name |
str |
Enter a unique identifier for this step.. | ❌ |
copy_image |
bool |
Enable this option to create a copy of the input image for visualization, preserving the original. Use this when stacking multiple visualizations.. | ✅ |
color_a |
str |
Color of the areas Model A predicted that Model B did not... | ✅ |
color_b |
str |
Color of the areas Model B predicted that Model A did not.. | ✅ |
background_color |
str |
Color of the areas neither model predicted.. | ✅ |
opacity |
float |
Transparency of the overlay.. | ✅ |
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 Model Comparison Visualization in version v1.
- inputs:
VLM as Detector,Byte Tracker,Google Vision OCR,Overlap Filter,SAM 3,Detections Stabilizer,Image Preprocessing,LMM For Classification,Ellipse Visualization,Stitch Images,Triangle Visualization,Detections Combine,QR Code Generator,Image Slicer,VLM as Classifier,Background Color Visualization,Model Monitoring Inference Aggregator,Segment Anything 2 Model,Template Matching,Dot Visualization,EasyOCR,Halo Visualization,Slack Notification,Byte Tracker,Color Visualization,JSON Parser,Llama 3.2 Vision,Email Notification,Corner Visualization,Mask Visualization,Time in Zone,Roboflow Custom Metadata,Stability AI Outpainting,Time in Zone,Crop Visualization,VLM as Detector,Grid Visualization,Perspective Correction,Single-Label Classification Model,Contrast Equalization,Polygon Zone Visualization,Bounding Box Visualization,Camera Focus,Icon Visualization,Image Blur,Time in Zone,Path Deviation,Anthropic Claude,Dynamic Crop,Bounding Rectangle,Path Deviation,Detections Consensus,Model Comparison Visualization,Local File Sink,Identify Changes,Classification Label Visualization,Circle Visualization,SIFT Comparison,Image Contours,Relative Static Crop,Detections Filter,VLM as Classifier,Stability AI Inpainting,Moondream2,Velocity,OCR Model,Florence-2 Model,SIFT,Morphological Transformation,Detections Transformation,Reference Path Visualization,Gaze Detection,SIFT Comparison,Polygon Visualization,Image Slicer,Florence-2 Model,Detection Offset,Clip Comparison,Image Convert Grayscale,Instance Segmentation Model,OpenAI,PTZ Tracking (ONVIF).md),Line Counter,Object Detection Model,Keypoint Detection Model,Google Gemini,Label Visualization,Email Notification,Trace Visualization,Byte Tracker,Dynamic Zone,YOLO-World Model,CogVLM,OpenAI,Detections Stitch,Stitch OCR Detections,Blur Visualization,CSV Formatter,OpenAI,Detections Classes Replacement,Twilio SMS Notification,Absolute Static Crop,Seg Preview,Roboflow Dataset Upload,Roboflow Dataset Upload,Stability AI Image Generation,Webhook Sink,Depth Estimation,Line Counter Visualization,Instance Segmentation Model,Multi-Label Classification Model,Pixelate Visualization,Image Threshold,Detections Merge,Keypoint Detection Model,LMM,Google Gemini,Identify Outliers,Camera Calibration,Keypoint Visualization,Object Detection Model - outputs:
VLM as Detector,Google Vision OCR,SAM 3,Classification Label Visualization,Detections Stabilizer,Circle Visualization,Image Contours,Relative Static Crop,Image Preprocessing,LMM For Classification,VLM as Classifier,Ellipse Visualization,Stitch Images,Triangle Visualization,Stability AI Inpainting,Image Slicer,VLM as Classifier,Background Color Visualization,Segment Anything 2 Model,Template Matching,Moondream2,OCR Model,Dot Visualization,Florence-2 Model,SIFT,Morphological Transformation,EasyOCR,Gaze Detection,Halo Visualization,Reference Path Visualization,SIFT Comparison,Buffer,Polygon Visualization,Image Slicer,Florence-2 Model,Clip Comparison,Perception Encoder Embedding Model,Instance Segmentation Model,OpenAI,Byte Tracker,Color Visualization,Image Convert Grayscale,Object Detection Model,Keypoint Detection Model,Google Gemini,Label Visualization,Email Notification,Llama 3.2 Vision,Trace Visualization,QR Code Detection,YOLO-World Model,Corner Visualization,Mask Visualization,Time in Zone,CogVLM,Stability AI Outpainting,OpenAI,Detections Stitch,Barcode Detection,Blur Visualization,Dominant Color,Crop Visualization,VLM as Detector,Single-Label Classification Model,OpenAI,Perspective Correction,Clip Comparison,Single-Label Classification Model,Absolute Static Crop,Seg Preview,Contrast Equalization,Roboflow Dataset Upload,Roboflow Dataset Upload,Polygon Zone Visualization,CLIP Embedding Model,Stability AI Image Generation,Depth Estimation,Bounding Box Visualization,Camera Focus,Line Counter Visualization,Instance Segmentation Model,Multi-Label Classification Model,Icon Visualization,Image Blur,Pixelate Visualization,Image Threshold,Keypoint Detection Model,Anthropic Claude,LMM,Google Gemini,Multi-Label Classification Model,Pixel Color Count,SmolVLM2,Dynamic Crop,Qwen2.5-VL,Model Comparison Visualization,Camera Calibration,Keypoint Visualization,Object Detection Model
Input and Output Bindings¶
The available connections depend on its binding kinds. Check what binding kinds
Model Comparison Visualization in version v1 has.
Bindings
-
input
image(image): The image to visualize on..copy_image(boolean): Enable this option to create a copy of the input image for visualization, preserving the original. Use this when stacking multiple visualizations..predictions_a(Union[object_detection_prediction,keypoint_detection_prediction,instance_segmentation_prediction]): Predictions.color_a(string): Color of the areas Model A predicted that Model B did not...predictions_b(Union[object_detection_prediction,keypoint_detection_prediction,instance_segmentation_prediction]): Predictions.color_b(string): Color of the areas Model B predicted that Model A did not..background_color(string): Color of the areas neither model predicted..opacity(float_zero_to_one): Transparency of the overlay..
-
output
image(image): Image in workflows.
Example JSON definition of step Model Comparison Visualization in version v1
{
"name": "<your_step_name_here>",
"type": "roboflow_core/model_comparison_visualization@v1",
"image": "$inputs.image",
"copy_image": true,
"predictions_a": "$steps.object_detection_model.predictions",
"color_a": "GREEN",
"predictions_b": "$steps.object_detection_model.predictions",
"color_b": "RED",
"background_color": "BLACK",
"opacity": 0.7
}