Skip to content

Conversation

@lrosemberg
Copy link
Contributor

@lrosemberg lrosemberg commented Dec 11, 2025

Description

Adds a new SAM3 workflow block (v3) that supports RLE mask output format

  • New SAM3 v3 block (roboflow_core/sam3@v3): Supports both rle and polygons output formats via the output_format parameter
  • New RLE_INSTANCE_SEGMENTATION_PREDICTION_KIND: A new Kind type for RLE-based instance segmentation predictions. RLE data is stored in sv.Detections.data["rle_mask"] and decoded numpy masks are populated in sv.Detections.mask
  • RLE serialization/deserialization: Added serialise_rle_sv_detections() and deserialize_rle_detections_kind() functions to handle RLE mask data
  • New InstanceSegmentationRLEPrediction model: Pydantic model for RLE-based predictions with rle field instead of points.
  • Visualization blocks updated: Halo, Mask, Polygon, Icon, and Model Comparison visualizations now accept RLE_INSTANCE_SEGMENTATION_PREDICTION_KIND as input
CleanShot.2025-12-10.at.21.53.11.mp4

Type of change

  • New feature (non-breaking change which adds functionality)

How has this change been tested, please provide a testcase or example of how you tested the change?

@lrosemberg lrosemberg self-assigned this Dec 11, 2025
@lrosemberg lrosemberg merged commit 15bdd54 into main Dec 12, 2025
51 checks passed
@lrosemberg lrosemberg deleted the lean/sam3-block-rle-compatibility branch December 12, 2025 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants