modosaic.segmentation.mask_validation_stats¶
modosaic.segmentation.mask_validation_stats ¶
MaskValidationStats
dataclass
¶
MaskValidationStats(valid=False, coverage_score=0.0, distinctness_score=0.0, fragmentation_score=0.0)
Quality statistics for generated segmentation masks.
Attributes:
| Name | Type | Description |
|---|---|---|
valid |
bool
|
Whether the statistic could be computed. |
coverage_score |
float
|
Image-coverage score for the mask set. |
distinctness_score |
float
|
Overlap and redundancy score for masks. |
fragmentation_score |
float
|
Score penalizing excessive fragmentation. |