Skip to content

Commit

Permalink
remove undefined variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ravnoor committed Sep 21, 2022
1 parent e35bec0 commit a7f7295
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/utils/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def dc(im1, im2):

im_sum = im1.sum() + im2.sum()
if im_sum == 0:
return empty_score
return 1

# Compute Dice coefficient
intersection = np.logical_and(im1, im2)
Expand Down

0 comments on commit a7f7295

Please sign in to comment.