我正在尝试运行谷歌云ml-engine,按照这个教程操作,当执行以下命令时:
$ 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,/tmp/pycocotools/pycocotools-2.0.tar.gz\
--module-name object_detection.model_tpu_main \
--runtime-version 1.10\
--scale-tier BASIC_TPU\
--region us-central1\
--
--model_dir=gs://${YOUR_GCS_BUCKET}/train
--tpu_zone us-central1
--pipeline_config_path=gs://${YOUR_GCS_BUCKET}/data/pipeline.config
回答我的命令:
ERROR: (gcloud.ml-engine.jobs.submit.training) INVALID_ARGUMENT: Field: runtime_version Error: The specified runtime version '1.10' with the Python version '' is not supported for TPU training. Please specify a different runtime version. See https://cloud.google.com/ml/docs/concepts/runtime-version-list for a list of supported versions
- '@type': type.googleapis.com/google.rpc.BadRequest
fieldViolations:
- description: The specified runtime version '1.10' with the Python version '' is
not supported for TPU training. Please specify a different runtime version.
See https://cloud.google.com/ml/docs/concepts/runtime-version-list for a list
of supported versions
field: runtime_version
由于未检测到Python的任何版本,我在命令行中添加了一个
--config=config.yaml
参数:
config.yaml
:trainingInput:
pythonVersion: "3.5"
但问题几乎没有改变:
...
- description: The specified runtime version '1.10' with the Python version '3.5'
...
运行时版本列表指定运行时版本1.10与Python 3.5兼容,我尝试了不同的运行时环境/ Python版本,但我的命令一直失败。