Skip to content

Commit

Permalink
test loss functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Arno1235 committed Mar 22, 2023
1 parent 0ff8f83 commit 8083027
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,8 +319,8 @@ def get_loss(self, logits, labels):

if self.weight_type == 'feedback':
for i in range(len(flat_labels)):
print(flat_labels[i][0])
flat_labels[i][0] = 0
# print(flat_labels[i][0])
flat_labels[i][0].assign(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 8083027

Please sign in to comment.