You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the model is created "y = cnn_model.CNN(x) ", the is_training variable is not passed. Thus in the testing section when performing y_final = sess.run(y, feed_dict={x: batch_xs, y_: batch_ys, is_training: False}), the is_training: False has no affect. This will impact your accuracy.
If you use the mnist_cnn_train.py test function, the model is initialized with the is_training parameter and will give a result of approximately .5 % higher.
I changed y = cnn_model.CNN(x, is_training=is_training) and now the accuracy percents match for both modules.
Just as a side note: tf.scalar_summar is deprecated in Tensor 1.4
The text was updated successfully, but these errors were encountered:
When the model is created "y = cnn_model.CNN(x) ", the is_training variable is not passed. Thus in the testing section when performing y_final = sess.run(y, feed_dict={x: batch_xs, y_: batch_ys, is_training: False}), the is_training: False has no affect. This will impact your accuracy.
If you use the mnist_cnn_train.py test function, the model is initialized with the is_training parameter and will give a result of approximately .5 % higher.
I changed y = cnn_model.CNN(x, is_training=is_training) and now the accuracy percents match for both modules.
Just as a side note: tf.scalar_summar is deprecated in Tensor 1.4
The text was updated successfully, but these errors were encountered: