从s3路径提供的Tensorflow无效 - 无法找到基本路径s3:// bucketname

时间:2017-11-23 15:30:27

标签: tensorflow amazon-s3 tensorflow-serving

从s3加载模型对我不起作用。根据#615我使用以下方法编译服务器:

bazel build -s -c opt --define with_s3_support=true //tensorflow_serving/model_servers:tensorflow_model_server

现在我用

运行它
bazel-bin/tensorflow_serving/model_servers/tensorflow_model_server --model_base_path=s3://bucketname/

我正在

  

FileSystemStoragePathSource遇到文件系统访问错误:无法找到基本路径s3:// bucketname / for servable default

有关如何解决此问题的任何提示?

1 个答案:

答案 0 :(得分:1)

除非您在该计算机上安装了AWS SDK,否则

TextBox无法解析。

更好的方法是在S3上使用模型的URL。如果您要这样做,则必须公开存储桶,每个人都可以访问它,或者您必须创建允许从服务器IP访问的存储桶策略。

如果您在AWS上托管服务器,您也可以使用IAM角色启动它并为其提供S3FullAccess。这适用于任何类型的生产环境,因为您不必在源代码中存储API密钥。