Skip to content

Commit

Permalink
Update dice.py
Browse files Browse the repository at this point in the history
  • Loading branch information
constantinpape authored Oct 17, 2023
1 parent 6ba60db commit 40c2e09
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions elf/evaluation/dice.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
def dice_score(segmentation, groundtruth, threshold_seg=0, threshold_gt=0):
""" Compute the dice score between binarized segmentation and ground-truth.
Note: for comparing probaility maps (i.e. predictions in range [0, 1]) with this function
you need to set the thresholds to None. Otherwise the results will be wrong.
Arguments:
segmentation [np.ndarray] - candidate segmentation to evaluate
groundtruth [np.ndarray] - groundtruth
Expand Down

0 comments on commit 40c2e09

Please sign in to comment.