semseginstancelabeling
semseginstancelabeling ¶
Module for SemSegInstanceLabel
Classes¶
SemSegInstanceLabel ¶
Bases: InstanceLabel
InstanceLabel for one SemSeg error mask instance (prediction or ground truth).
Functions¶
calc_iou ¶
Calculates the IOU of the masks of two SemSegInstanceLabels
Parameters:
-
other(SemSegInstanceLabel) –Second SemSegInstanceLabel to calculate the IOU with
Returns:
-
float–Calculated IOU
Source code in niceml/utilities/semseg/semseginstancelabeling.py
scale_label ¶
Scales an SemSegInstanceLabel by a given scale_factor
Parameters:
-
scale_factor(float) –Factor to scale the SemSegInstanceLabel by
Returns:
-
SemSegInstanceLabel–Scaled instance of this SemSegInstanceLabel