因此,我根據本指南培訓了啓蒙模型以識別花朵。 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