系统信息
描述我可以在本地训练模型的问题。准确性很好,但我想尝试使用GCP来获得类似的结果。我按照这里提到的谷歌文档:
https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/running_on_cloud.md
https://medium.com/google-cloud/object-detection-tensorflow-and-google-cloud-platform-72e0a3f3bdd6
当我尝试使用以下命令在云上运行训练会话时:
gcloud ml-engine jobs submit training object_detection_188001 \ --job-dir=gs://weeddetection/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://weeddetection/train \ --pipeline_config_path=gs://weeddetection/data/ssd_mobilenet_v1_pets.config
我收到以下错误:
ERROR: (gcloud.ml-engine.jobs.submit.training) unrecognized arguments:
\
\
\
\
\
\
--train_dir=gs://weeddetection/train
\
--pipeline_config_path=gs://weeddetection/data/ssd_mobilenet_v1_pets.config
weeddetection is my GC bucket name and 188001 is my shell ID.
当您包含自定义选项(如--train-dir
和--pipeline_config_path
)时,需要将它们放在命令的末尾。您还需要将命令的选项和选项与--
分开。试试这个:
gcloud ml-engine jobs submit training object_detection_188001 --job-dir=gs://weeddetection/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://weeddetection/train --pipeline_config_path=gs://weeddetection/data/ssd_mobilenet_v1_pets.config