0

我已将计算区域和区域设置为us-east4使用 Google Cloud SDK

$ gcloud init

$ gcloud config set compute/region us-east4

$ gcloud config set compute/zone us-east4

但是 AutoML Vision 模型一直默认为us-central1. 在确认我的计算区域设置为us-east4并且项目/帐户正确后,我尝试重新启动终端并训练新模型。


$ gcloud config configurations list

NAME         IS_ACTIVE  ACCOUNT                  PROJECT                     DEFAULT_ZONE  DEFAULT_REGION
default      True       xxxxxxxxxxxxx@gmail.com  xxxxx-xxxxx-xxxxxxxxxxxxxx  us-east4-b    us-east4

当我在 Python 中请求使用我的计算区域参数设置为的预测时,us-east4我收到一条错误消息:

400 List of found errors: 1.Field: name; Message: The provided location ID is not valid. : InvalidArgument

但是,当我请求将计算区域参数设置为us-central1它的预测时,它会起作用并且我得到预测响应。我不确定为什么会这样,或者我是否遗漏了什么。

4

1 回答 1

1

在此处查看先决条件 #10:AutoML Vision API 教程。它说:

“AutoML Vision 当前需要位置 us-central1”

请注意,Cloud AutoML 仍处于测试阶段,因此可能需要一段时间才能在其他位置使用。因此,目前,您将无法更改它。

于 2019-07-17T16:25:16.783 回答