Google云平台-ML引擎-Flower数据集

时间:2018-09-10 11:57:43

标签: google-cloud-platform google-cloud-storage image-recognition google-cloud-ml

在评估数据的预处理中遇到错误。

我正在运行的命令-

python trainer/preprocess.py \
    --input_dict "$DICT_FILE" \
    --input_path "gs://cloud-ml-data/img/flower_photos/eval_set.csv" \
    --output_path "${GCS_PATH}/preproc/eval" \
    --cloud

错误

 File "trainer/preprocess.py", line 490, in <module>main(sys.argv[1:])
  File "trainer/preprocess.py", line 486, in main run(arg_dict)
  File "trainer/preprocess.py", line 393, in run with beam.Pipeline(options=pipeline_options) as p:
  File "/home/ankitagupta/.local/lib/python2.7/site-packages/apache_beam/pipeline.py", line 131, in __init__
    'Pipeline has validations errors: \n' + '\n'.join(errors))
ValueError: Pipeline has validations errors:
Invalid GCS bucket (gs:// ml-flowers-216007/ankitagupta/flowers_ankitagupta_20180910_144047/preproc/temp), given for the option: temp_location. See https://developers.google.com/storage/docs/bucketnaming for more details.

1 个答案:

答案 0 :(得分:2)

检查此地址。此地址中有一个空格(在gs://部分之后),找到它的来源并将其删除:

gs:// ml-flowers-216007/ankitagupta/flowers_ankitagupta_20180910_144047/preproc/temp