【问题标题】:Model is not deployed and cannot predit模型未部署,无法预测
【发布时间】:2019-12-15 06:25:27
【问题描述】:

在 Google Cloud Automl - 语言分类中,我提出了以下预测请求。

我得到了 - 该模型尚未部署,因此尚不支持预测。

我们如何部署模型?如果部署模型,我看不到任何文档

我正在运行 Google Cloud Shell 中代码中显示的此命令

curl -X POST -H "Authorization: Bearer $(gcloud auth application-default print-access-token)" -H "Content-Type: application/json" https://automl.googleapis.com/v1beta1/projects/[projectid]/locations/us-central1/models/[Modelname]:predict -d '{ “有效载荷”:{ “文本片段”:{ "content": "你的文字在这里", “mime_type”:“文本/纯文本” }, } }' { “错误”: { “代码”:400, "message": "模型未部署,因此不支持预测。", “状态”:“FAILED_PRECONDITION” } }

预期预测

【问题讨论】:

    标签: google-cloud-automl google-cloud-automl-nl


    【解决方案1】:

    您可以使用 GCP 上的 UI 部署成功训练的模型。 在 HOME 下转到您各自的 AI 并在其仪表板中找到您的模型。

    【讨论】:

      猜你喜欢
      • 2020-08-22
      • 2018-01-23
      • 1970-01-01
      • 2019-04-20
      • 2019-07-04
      • 1970-01-01
      • 1970-01-01
      • 2021-11-18
      • 2020-12-08
      相关资源
      最近更新 更多