April 2017
Intermediate to advanced
320 pages
7h 46m
English
The retraining script that we just used will write out a custom version of Inception V3 network with the final layer retrained to our flower dataset to tensorflow_files/output_graph.pb and you will find a text file that contains the labels in tensorflow_files/output_labels.txt.
The following are the steps to classifying an image:
import tensorflow as tf, sys
provided_image_path = sys.argv[1]
provided_image_data = tf.gfile.FastGFile(provided_image_path, 'rb').read()
label_lines = [line.rstrip() ...
Read now
Unlock full access