InstanceSegmentationLoss#

class InstanceSegmentationLoss(cost_mask: float = 1.0, cost_dice: float = 1.0, cost_class: float = 0.0, num_points: int = 0, ignore_index: int = -1, loss_weight_focal: float = 1.0, loss_weight_dice: float = 1.0, cls_weight_matched: float = 2.0, cls_weight_noobj: float = 0.1, focal_alpha: float = 0.25, focal_gamma: float = 2.0, truth_label: str = 'segment', aux_loss_weight: float = 1.0, momentum_loss_weight: float = 0.0, iou_loss_weight: float = 0.0)[source]#

Bases: FastInstanceSegmentationLoss

DEPRECATED alias for FastInstanceSegmentationLoss.

The original O(QxJxP) non-fast instance loss + HungarianMatcher were removed; they were verified bitwise-equal to the fast path. This name is kept registered only so historical dumped configs (type=”InstanceSegmentationLoss”) still build. New configs should use FastInstanceSegmentationLoss.