Vision metrics


source

calculate_dsc

 calculate_dsc (pred:torch.Tensor, targ:torch.Tensor)

MONAI compute_meandice


source

calculate_haus

 calculate_haus (pred:torch.Tensor, targ:torch.Tensor)

MONAI compute_hausdorff_distance


source

binary_dice_score

 binary_dice_score (act:<built-
                    inmethodtensoroftypeobjectat0x7ff050730e20>,
                    targ:torch.Tensor)

*Calculates the mean Dice score for binary semantic segmentation tasks.

Args: act: Activation tensor with dimensions [B, C, W, H, D]. targ: Target masks with dimensions [B, C, W, H, D].

Returns: Mean Dice score.*


source

multi_dice_score

 multi_dice_score (act:torch.Tensor, targ:torch.Tensor)

*Calculate the mean Dice score for each class in multi-class semantic segmentation tasks.

Args: act: Activation tensor with dimensions [B, C, W, H, D]. targ: Target masks with dimensions [B, C, W, H, D].

Returns: Mean Dice score for each class.*


source

binary_hausdorff_distance

 binary_hausdorff_distance (act:torch.Tensor, targ:torch.Tensor)

*Calculate the mean Hausdorff distance for binary semantic segmentation tasks.

Args: act: Activation tensor with dimensions [B, C, W, H, D]. targ: Target masks with dimensions [B, C, W, H, D].

Returns: Mean Hausdorff distance.*


source

multi_hausdorff_distance

 multi_hausdorff_distance (act:torch.Tensor, targ:torch.Tensor)

*Calculate the mean Hausdorff distance for each class in multi-class semantic segmentation tasks.

Args: act: Activation tensor with dimensions [B, C, W, H, D]. targ: Target masks with dimensions [B, C, W, H, D].

Returns: Mean Hausdorff distance for each class.*