提交Google Cloud ML培训作业以进行Tensorflow对象检测时出现错误消息

问题描述:

尝试提交针对Tensorflow对象检测任务的Google Cloud ML培训作业,我正在关注

Trying to submit a Google Cloud ML Training job for Tensorflow Object Detection task and I am following the official guideline

以下是我正在提交的工作:

Following is the job that I am submitting:

export CONFIG=trainer/cloud.yaml
export TRAIN_DIR=kt-1000/training
export PIPELINE_CONFIG=kt-1000/training/ssd_mobilenet_v1_pets.config

gcloud ml-engine jobs submit training object_detection_`date +%s` \

    --job-dir=gs://${TRAIN_DIR} \
    --packages dist/object_detection-0.1.tar.gz,slim/dist/slim
0.1.tar.gz \
    --module-name object_detection.train \
    --region asia-east1-a \
    --config ${CONFIG} \
    -- \
    --train_dir=gs://${TRAIN_DIR} \
    --pipeline_config_path=gs://${PIPELINE_CONFIG}

我收到以下错误消息:

ERROR: (gcloud.ml-engine.jobs.submit.training) unrecognized arguments:

但是错误消息并没有指出无法识别哪个参数!!!

The Error message however does not point out which argument/s is unrecognised though!!!!

对此的任何帮助将不胜感激

Any help on this will be truly appreciated

谢谢

Devjothi

您只需要删除--之前的任何空格,就像这样:

You just have to remove any space before --, like this:

gcloud ml-engine jobs submit training $JOB_NAME \
--job-dir $OUTPUT_PATH \
--runtime-version 1.10  \
--python-version 3.5 \
--module-name trainer.task \
--package-path trainer/ \
--region $REGION \
-- \
--train-files $TRAIN_DATA \
--eval-files $EVAL_DATA \
--train-steps 1000 \
--eval-steps 100 \
--verbosity DEBUG