Reputation: 21
When I create a version of a machine learning model (whether it is my own model or the ML Engine census example) using the command:
gcloud ml-engine versions create v1 \ --model $MODEL_NAME \ --origin $MODEL_BINARIES \ --runtime-version 1.4
I get an error saying: ERROR: (gcloud.ml-engine.versions.create) Failed accessing the model. Please make sure that the Cloud ML Api was enabled recently and retry. If that doesn't resolve this issue, please contact Cloud ML.
Things I tried:
I still get the same error even for the tutorial.
Any pointers on how to fix this?
Has anyone tried to create model version as shown in the tutorial since April 19, 2018?
I'd appreciate your help.
Upvotes: 2
Views: 5131
Reputation: 61
Run this command:
gsutil ls -r $OUTPUT_PATH/export
In the output, you can see a number (like 1569256565). It's the new timestamp
Run this command with the new timestamp :
MODEL_BINARIES=$OUTPUT_PATH/export/census/<timestamp>/
Upvotes: 1
Reputation: 11
After running this code:
gsutil ls -r $OUTPUT_PATH/export
It will generate a new timestamp in the path link Use that timestamp
Upvotes: 1
Reputation: 4166
Check that modelbinaries is the full path folder that contains the checkpoints. Typically, this will be gs://.../.../.../timestamp, i.e. end with a timestamp
Upvotes: 0