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 22, 2023
1 parent 744c111 commit 32dc51b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions unet_2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,9 @@ def get_loss(self, logits, labels):

if self.weight_type == 'feedback':

flat_labels = tf.Variable(flat_labels)
# flat_labels = tf.Variable(flat_labels)
for i in range(len(flat_labels)):
# print(flat_labels[i][0])
print(flat_labels[i])
flat_labels[i][0].assign(0)

weight_map = feedback_weight_map(flat_probs, flat_labels, 3, 100)
Expand Down

0 comments on commit 32dc51b

Please sign in to comment.