关注google对象检测API教程时出错

时间:2017-10-03 11:17:06

标签: tensorflow object-detection google-cloud-ml-engine google-cloud-sdk

在遵循here中的教程时,我已经到了在云上训练模型的阶段。不幸的是,命令

gcloud ml-engine jobs submit training `whoami`_object_detection_`date +%s` \
    --job-dir=gs://${YOUR_GCS_BUCKET}/train \
    --packages dist/object_detection-0.1.tar.gz,slim/dist/slim-0.1.tar.gz \
    --module-name object_detection.train \
    --region us-central1 \
    --config object_detection/samples/cloud/cloud.yml \
    -- \
    --train_dir=gs://${YOUR_GCS_BUCKET}/train \
    --pipeline_config_path=gs://${YOUR_GCS_BUCKET}/data/faster_rcnn_resnet101_pets.config

产生以下错误:

  

错误:(gcloud.ml-engine.jobs.submit.training)FAILED_PRECONDITION:   字段:package_uris错误:提供的GCS路径   [GS://宠物检测器测试/火车/包/ [ REMOVED ] /slim-0.1.tar.gz,   服务帐号无法读取gs:// pet-detector-test / train / packages / [ REMOVED ] /object_detection-0.1.tar.gz]   服务 - [ REMOVED ] @ cloud-ml.google.com.iam.gserviceaccount.com

注意:我已从错误消息中删除了一些特定标识符,并将其更改为[REMOVED]

存储桶似乎包含所有必要的数据,enter image description here enter image description here

知道如何继续吗?

1 个答案:

答案 0 :(得分:1)

问题是由于在here中跳过了一步 具体 - 使用以下命令:

gcloud config set project [your-project-id]
gcloud auth application-default login