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

if self.weight_type == 'feedback':

flat_labels = tf.Variable(flat_labels)
for i in range(len(flat_labels)):
# 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 744c111

Please sign in to comment.