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 53c1ced commit 0ff8f83
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions unet_2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,9 +318,9 @@ def get_loss(self, logits, labels):
# print(f'flat_labels: {np.shape(flat_labels)} {flat_labels}')

if self.weight_type == 'feedback':
for i in range(len(flat_probs)):
print(flat_probs[i][0])
flat_probs[i][0] = 0
for i in range(len(flat_labels)):
print(flat_labels[i][0])
flat_labels[i][0] = 0
weight_map = feedback_weight_map(flat_probs, flat_labels, 3, 100)
print(f'wm {np.shape(weight_map)}')
else:
Expand Down

0 comments on commit 0ff8f83

Please sign in to comment.