因此,我根据本指南培训了启蒙模型以识别花朵。 https://www.tensorflow.org/versions/r0.8/how_tos/image_retraining/index.html如何使用Tensorflow服务为再培训初始模型服务?
bazel build tensorflow/examples/image_retraining:retrain
bazel-bin/tensorflow/examples/image_retraining/retrain --image_dir ~/flower_photos
要通过命令行中的图像进行分类,我可以这样做:
bazel build tensorflow/examples/label_image:label_image && \
bazel-bin/tensorflow/examples/label_image/label_image \
--graph=/tmp/output_graph.pb --labels=/tmp/output_labels.txt \
--output_layer=final_result \
--image=$HOME/flower_photos/daisy/21652746_cc379e0eea_m.jpg
但我怎么通过Tensorflow服务服务于这个图?
有关设置Tensorflow服务的指南(https://tensorflow.github.io/serving/serving_basic)没有说明如何合并图(output_graph.pb)。服务器期望文件的不同格式:
$>ls /tmp/mnist_model/00000001
checkpoint export-00000-of-00001 export.meta
感谢这么多的信息,布佩希!你可能只提供几行示例调用给那些对Python和TensorFlow不太熟练的人吗? – telemark