gpt4 book ai didi

docker - 运行docker容器报错: Could not find base path/models/model for servable model

转载 作者:行者123 更新时间:2023-12-02 20:30:03 33 4
gpt4 key购买 nike

当我尝试使用 docker 镜像运行 docker 容器时遇到问题:tensorflow/serving。

  1. 我运行命令:

docker run --name=tf_serving -it tensorflow/serving

  1. 结果是:
2019-10-28 04:23:56.858540: I tensorflow_serving/model_servers/server_core.cc:462] Adding/updating models.
2019-10-28 04:23:56.858571: I tensorflow_serving/model_servers/server_core.cc:573] (Re-)adding model: model
2019-10-28 04:23:56.858852: E tensorflow_serving/sources/storage_path/file_system_storage_path_source.cc:362] FileSystemStoragePathSource encountered a filesystem access error: Could not find base path /models/model for servable model

我一直在努力解决它,但仍然存在。谁能对此有任何想法,非常感谢!

最佳答案

我找到了解决方案,对于有同样问题的人,我们需要在本地计算机和docker中提供模型路径:

docker run --name=the_name -p 9000:9000 -it -v "/path_to_the_model_in_computer:/path_to_model_in_docker" tensorflow/serving:1.15.0 --model_name=MODEL_NAME --port=9000

关于docker - 运行docker容器报错: Could not find base path/models/model for servable model,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58585816/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com