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 20, 2023
1 parent e578b10 commit 5a031ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unet_2d.py
Expand Up @@ -321,7 +321,7 @@ def get_loss(self, logits, labels):

### TEST ###

pred_prob = tf.nn.softmax(logits, axis=-1)
pred_prob = tf.nn.softmax(flat_logits, axis=-1)
pred = tf.one_hot(tf.argmax(pred_prob, -1), self.n_class)

flat_pred = tf.reshape(pred, [-1, self.n_class])
Expand Down

0 comments on commit 5a031ad

Please sign in to comment.