在评估数据的预处理中遇到错误。
我正在运行的命令-
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.
答案 0 :(得分:2)
检查此地址。此地址中有一个空格(在gs://
部分之后),找到它的来源并将其删除:
gs:// ml-flowers-216007/ankitagupta/flowers_ankitagupta_20180910_144047/preproc/temp