Closed maziello closed 7 years ago
In general I cannot answer questions like this, because it would simply take too much of my time if I had to help everyone who tried to mod my code and got an error somewhere. People expect too much of me. You also don't even print the error message here so it is impossible to say what might be the problem. I would suggest that you first google search for the error-codes, then try adding lots of print statements until you find the problem. Then please complete this thread you opened by writing the full error-message and the solution you found, so it may help others in the future. When you're done please close the thread.
Excellent. Thanks
I'm trying to train the neural network in tutorial 02 from @Hvass-Labs using the knifey dataset. All is fine until I try to run a modified version of the print_test_accuracy() function. In the while loop, images and labels are loaded correctly but when it tries to run the session to predict the result, everything crashes and the python kernel has to be restarted. I modified placeholder x to have the following shape: x = tf.placeholder(tf.float32, shape=[None, img_height, img_width, num_channels], name='x')
Could you please help me understand what am I doing wrong? I pasted the modified print_test_accuracy() function below. Thanks a lot for you help,
`# Split the test-set into smaller batches of this size. test_batch_size = 64
def print_test_accuracy(show_example_errors=False, show_confusion_matrix=False):