Проблема с обучением Google Cloud Platform

Системная информация

  1. Платформа ОС и распространение: Windows 10 64 бит
  2. TensorFlow установлен из (исходный или двоичный): двоичный
  3. Версия TensorFlow: 1.4.0
  4. Python версии 3.5.2 (v3.5.2: 4def2a2901a5, 25 июня 2016 г., 22:18:55)
  5. Графический процессор: nVidia GeForce 755M 2 ГБ Процессор: Intel x64-64 Intel Core i5-4200M CPU @ 2,50 ГГц, 8 ГБ памяти

Опишите проблему. Я могу обучить модель локально. Точность была приличной, но я хотел попробовать использовать GCP для получения аналогичных результатов. Я следил за упомянутой здесь документацией Google:

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. 

person kannan k    schedule 18.12.2017    source источник


Ответы (1)


Когда вы включаете настраиваемые параметры, такие как --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
person MatthewScarpino    schedule 18.12.2017
comment
Привет! Спасибо! На этот раз я смог запустить его. Однако я не мог отслеживать это на тензорной доске. https://drive.google.com/open?id=1nHJtl5VrUEgBGkb40DJ_FFQYxC7-tbYX - person kannan k; 18.12.2017