Notes on empty predicted masks ¶
By: tom-julius on June 4, 2025, 10:31 a.m.
Dear participants,
we want to notify you about the following updated paragraph of the metrics page: https://trackrad2025.grand-challenge.org/metrics/
Missing output on single frames¶
In cases where an algorithm produces no output on a given frame where a ground truth label is available, the following default metric values will be used: DSC=0, HD95/MASD/CD=image size along the largest dimension in mm, dose set to zero for that frame, inference time calculated as in normal cases.
ATTENTION!
These default metric values are very bad and it is highly recommended to prevent them from being applied. We recommend repeating the previous non-empty predicted frame, but other approaches may be useful too. This can be implemented by adding:
# Check for empty predictions and use last non-empty prediction. predicted_labels = ... # assuming predicted_labels.shape = (W, H, T) for i in range(1, predicted_labels.shape[2]): pass # generate prediction. # Check for empty predictions and use previous non-empty prediction. if np.sum(predicted_labels[:, :, i]) == 0: predicted_labels[:, :, i] = predicted_labels[:, :, i - 1]
Sincerely, Tom