【发布时间】:2019-12-20 09:55:08
【问题描述】:
我尝试运行 Google 的 AI Explanations 图像示例。 链接:https://colab.sandbox.google.com/github/GoogleCloudPlatform/ml-on-gcp/blob/master/tutorials/explanations/ai-explanations-image.ipynb
而且,我使用这些代码安装我的谷歌驱动器
from google.colab import drive
drive.mount('/content/gdrive')
然后,我将模型导出到我的 Google 云端硬盘
export_path = keras_estimator.export_saved_model(
'/content/gdrive/My Drive/xai_flower/',
serving_input_receiver_fn
).decode('utf-8')
但是当我想使用时
!gcloud beta ai-platform versions create $VERSION \
--model $MODEL \
--origin $export_path \
--runtime-version 1.14 \
--framework TENSORFLOW \
--python-version 3.5 \
--machine-type n1-standard-4 \
--explanation-method integrated-gradients \
--num-integral-steps 25
会输出
/bin/bash: /content/gdrive/My: No such file or directory
ERROR: (gcloud.beta.ai-platform.versions.create) unrecognized arguments: Drive/xai_flower/1576834069
很明显gcloud存在解析路径带空格的问题。
我曾尝试用其他词重命名“我的云端硬盘”,但似乎无法使用。
【问题讨论】:
标签: google-drive-api gcloud google-colaboratory gcp-ai-platform-notebook