osc.viz.segmentation.match_segmentation_masks
- match_segmentation_masks(masks, preds, preds_thres)[source]
Match predicted and ground-truth segmentation masks.
- Parameters
- Return type
- Returns
Tuple of
(iou_idx, iou_val, dice_idx, dice_val). IoU indexes indicate that the best match formasks[b, t]ispreds_thres[b, iou_idx[b, t]]with an IoU ofiou_val[b, t]. DICE indexes indicate that the best match formasks[b, t]ispreds[b, dice_idx[b, t]]with a DICE score ofdice_val[b, t].