Guest User

Untitled

a guest
Oct 18th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. y_truth = [batch, H, W, 2] (one-hot encoded)
  2. logits = [batch, H, W, 2]
  3. IOU, up_op = tf.metrics.mean_iou(
  4. labels = argmax(y_truth, axis=3),
  5. predictions = argmax(logits, axis=3),
  6. num_classes = 2)
  7.  
  8. with tf.control_dependencies([up_op]):
  9. if create_scalar_summaries:
  10. tf.summary.scalar('IOU', IOU)
Add Comment
Please, Sign In to add comment