Skip to content

Commit

Permalink
test loss function
Browse files Browse the repository at this point in the history
  • Loading branch information
Arno1235 committed Mar 20, 2023
1 parent 5a031ad commit 82358c4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions unet_2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,6 @@ def get_loss(self, logits, labels):
sum_ = eps + tf.reduce_sum(flat_pred + flat_labels, axis=0)
dice = 2 * intersection / sum_

dice = dice[1:]

loss = 0
for d in dice:
loss += d
Expand Down

0 comments on commit 82358c4

Please sign in to comment.