diff --git a/FCN.py b/FCN.py index d4825f5..56dca50 100644 --- a/FCN.py +++ b/FCN.py @@ -155,8 +155,8 @@ def main(argv=None): tf.summary.image("input_image", image, max_outputs=2) tf.summary.image("ground_truth", tf.cast(annotation, tf.uint8), max_outputs=2) tf.summary.image("pred_annotation", tf.cast(pred_annotation, tf.uint8), max_outputs=2) - loss = tf.reduce_mean((tf.nn.sparse_softmax_cross_entropy_with_logits(logits, - tf.squeeze(annotation, squeeze_dims=[3]), + loss = tf.reduce_mean((tf.nn.sparse_softmax_cross_entropy_with_logits(logits=logits, + labels=tf.squeeze(annotation, squeeze_dims=[3]), name="entropy"))) tf.summary.scalar("entropy", loss)