下载inception的checkpoint
# curl -O http://download.tensorflow.org/models/image/imagenet/inception-v3-2016-03-01.tar.gz
解压checkpoint
# tar xzf inception-v3-2016-03-01.tar.gz
# ls inception-v3
README.txt checkpoint model.ckpt-157585
导入checkpoint,并导出模型
# bazel-bin/tensorflow_serving/example/inception_saved_model --checkpoint_dir=inception-v3 --output_dir=/tmp/inception-export
查看模型
# ls /tmp/inception-export
1
启动Model Server
# tensorflow_model_server --port=9000 --model_name=inception --model_base_path=/tmp/inception-export &> inception_log &
[1] 45