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 136267e commit 0035268
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions unet_2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,11 +314,12 @@ def get_loss(self, logits, labels):
flat_probs = tf.reshape(probs, [-1, self.n_class])

# TEST
print(f'flat_probs: {np.shape(flat_probs)} {flat_probs}')
print(f'flat_labels: {np.shape(flat_labels)} {flat_labels}')
# print(f'flat_probs: {np.shape(flat_probs)} {flat_probs}')
# print(f'flat_labels: {np.shape(flat_labels)} {flat_labels}')

if self.weight_type == 'feedback':
weight_map = feedback_weight_map(flat_probs, flat_labels, 3, 100)
print(np.shape(weight_map))
else:
raise ValueError("Unknown weight type: "%self.weight_type)

Expand Down

0 comments on commit 0035268

Please sign in to comment.