【发布时间】:2018-05-17 07:04:13
【问题描述】:
我在 Tensorflow 中使用 CNN 进行图像分割。我知道如何计算训练精度
#compute the accuracy
correct_prediction = tf.equal(tf.argmax(flat_logits, 1), tf.argmax(y,1))
accuracy = tf.reduce_mean(tf.cast(correct_prediction, tf.float32))
[train_accuracy] = sess.run([accuracy], feed_dict={x: batch_x, y:batch_y})
是否可以计算每个测试图像的准确度?
【问题讨论】:
标签: tensorflow machine-learning image-segmentation convolutional-neural-network