Vision metrics
calculate_dsc
calculate_dsc (pred:torch.Tensor, targ:torch.Tensor)
MONAI compute_meandice
calculate_haus
calculate_haus (pred:torch.Tensor, targ:torch.Tensor)
MONAI compute_hausdorff_distance
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.*
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.*
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.*
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.*