遵循Google对象检测API教程时出错 [英] Error when following google object detection API tutorial

查看:110
本文介绍了遵循Google对象检测API教程时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在遵循

While following the tutorial in here, I've reached the stage of training the model on the cloud. Unfortunately, the command

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://pet-detector-test/train/packages/[已删除]/slim-0.1.tar.gz, 服务帐户无法读取gs://pet-detector-test/train/packages/[已删除]/object_detection-0.1.tar.gz] service-[已删除] @ cloud-ml.google.com.iam.gserviceaccount.com.

ERROR: (gcloud.ml-engine.jobs.submit.training) FAILED_PRECONDITION: Field: package_uris Error: The provided GCS paths [gs://pet-detector-test/train/packages/[REMOVED]/slim-0.1.tar.gz, gs://pet-detector-test/train/packages/[REMOVED]/object_detection-0.1.tar.gz] cannot be read by service account service-[REMOVED]@cloud-ml.google.com.iam.gserviceaccount.com.

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

Note: I have removed some specific identifiers from the error message and changed them to [REMOVED]

存储桶似乎包含所有必要的数据,

The bucket seems to contain all the necessary data,

任何想法如何进行?

推荐答案

问题是由于跳过了

The problem was due to skipping a step in here.
Specifically - use the following commands:

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

这篇关于遵循Google对象检测API教程时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆