[英]Serving Univeral Sentence Encoder Model using tensorflow serving and docker
I have universal sentence encoder model saved on my local drive.我在本地驱动器上保存了通用句子编码器 model。 I am trying to serve the model on docker container using tensorflow serving.
我正在尝试使用 tensorflow 服务在 docker 容器上服务 model。
Command:命令:
sudo docker run -p 8502:8502 --name tf-serve -v /home/ubuntu/first/models:/models -t tensorflow/serving --model_base_path=/models/test
where /home/ubuntu/first/models
is the folder path to my model files.其中
/home/ubuntu/first/models
是我的 model 文件的文件夹路径。
After running initially it is going into an infinite loop.最初运行后,它将进入无限循环。
What is happening here?.这里发生了什么? Any help will be appreciated.
任何帮助将不胜感激。
edit your command like this:像这样编辑您的命令:
sudo docker run -p 8502:8502 --name tf-serve -v /home/ubuntu/first/models:/models/test -t tensorflow/serving --model_base_path=/models/test
your --model_base_path
is /models/test
so you need to copy the files into that folder in your -v
你的
--model_base_path
是/models/test
所以你需要将文件复制到你的-v
文件夹中
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.