For the computation of matches in __pair_candidates() for InstanceSegmentationValidation, the threshold of overlap is 0.1:
Line 199: matches = [(i, j) for i, j in zip(gt_inds, pred_inds) if dice_matrix[i, j] > 0.1]
This threshold should be the same as the overlap-threshold given in the config-file.
The calculation of recall and precision in __compute_metrics() for InstanceSegmentationValidation for object-wise metrics should also be corrected and calculated based on how many detected gt and how many detected predictions.
For the computation of matches in __pair_candidates() for InstanceSegmentationValidation, the threshold of overlap is 0.1:
Line 199: matches = [(i, j) for i, j in zip(gt_inds, pred_inds) if dice_matrix[i, j] > 0.1]
This threshold should be the same as the overlap-threshold given in the config-file.
The calculation of recall and precision in __compute_metrics() for InstanceSegmentationValidation for object-wise metrics should also be corrected and calculated based on how many detected gt and how many detected predictions.