【问题标题】:Cloud Machine Learning Engine fails to deploy modelCloud Machine Learning Engine 无法部署模型
【发布时间】:2019-04-10 11:44:21
【问题描述】:

我已经训练了我自己的模型和来自official tutorial 的模型。

我已完成部署模型以支持预测的步骤。但是,它一直给我一个错误说:

"create version failed. internal error happened"

当我尝试通过运行来部署模型时:

gcloud ml-engine versions create v1 \
--model $MODEL_NAME \
--origin $MODEL_BINARIES \
--python-version 3.5 \
--runtime-version 1.13

*模型二进制文件应该是正确的,因为我将它指向包含 model.pb 和变量文件夹的文件夹,例如MODEL_BINARIES=gs://$BUCKET_NAME/results/20190404_020134/saved_model/1554343466.

我也尝试更改模型的区域设置,但这无济于事。

【问题讨论】:

    标签: google-cloud-platform google-cloud-ml


    【解决方案1】:

    事实证明,您的 GCS 存储桶和经过训练的模型需要位于同一区域。这在 Cloud ML 教程中没有得到很好的解释,它只说:

    Note: Use the same region where you plan on running Cloud ML Engine jobs. The example uses us-central1 because that is the region used in the getting-started instructions.
    

    另请注意,很多区域不能同时用于存储桶和模型训练(例如 asia-east1)。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-11-16
      • 1970-01-01
      • 1970-01-01
      • 2018-09-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-03-20
      相关资源
      最近更新 更多