本文介绍了提交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

这篇关于提交Google Cloud ML培训作业以进行Tensorflow对象检测时出现错误消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-15 07:22