November 2017
Intermediate to advanced
304 pages
6h 58m
English
Now that we've enhanced the classifier to load random images, we'll start with choosing these random images with the exact size and shape of our training/testing images. We'll need to add placeholders for these user-provided images, so we'll add the following lines in the appropriate locations:
tf_random_dataset = tf.placeholder(tf.float32, shape=(1, image_size, image_size, num_channels), name='RANDOM_DATA')random_prediction = tf.nn.softmax(nn_model(tf_random_dataset, weights, biases))
Next, we will grab the image provided by the user via the following command-line parameter and run our session on the image:

We will ...
Read now
Unlock full access