btk.metrics.segmentation module

Implements segmentation metrics for evaluating deblending results in BTK.

class btk.metrics.segmentation.IoU(batch_size: int, *args, **kwargs)

Bases: SegmentationMetric

Intersection-over-Union class metric.

class btk.metrics.segmentation.SegmentationMetric(batch_size: int, *args, **kwargs)

Bases: Metric, ABC

Abstract class for segmentation metrics in BTK.