Skip to content

Model Comparison Visualization

Class: ModelComparisonVisualizationBlockV1

Source: inference.core.workflows.core_steps.visualizations.model_comparison.v1.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.

Input and Output Bindings

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

Bindings
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
}