Google Cloud ML Engine is a managed service that offers training and/or prediction services using Machine Learning models.
Questions tagged [google-cloud-ml]
1007 questions
5
votes
2 answers
Google cloud AI platform jupyter notebook instance will not open even after a reset and is running
I am using the Google AI platform which provides jupyterlab notebooks. I have 2 notebook instances set up to run R of which only one notebook now opens. The first notebook will not open regardless of the number of stops and resets I performed. The…

Vass
- 2,682
- 13
- 41
- 60
5
votes
2 answers
How to log from a custom ai platform model
I recently deployed a custom model to google cloud's ai-platform, and I am trying to debug some parts of my preprocessing logic. However, My print statements are not being logged to the stackdriver output. I have also tried using the logging client…

Nikita Jerschow
- 836
- 2
- 11
- 24
5
votes
4 answers
gcloud problems with local prediction
I am using gcloud local prediction to test my exported model. The model is a TensorFlow object detection model which has been trained on custom dataset. I am using the following gcloud command:
gcloud ml-engine local predict…

CyberPunk
- 1,297
- 5
- 18
- 35
5
votes
1 answer
How to run TF object detection API model_main.py in evaluation mode only
I would like to evaluate a custom-trained Tensorflow object detection model on a new test set using Google Cloud.
I obtained the inital checkpoints…

Thömi Mendelin
- 53
- 1
- 4
5
votes
2 answers
Including BEAM preprocessing graph in Keras models at serving
Short Question:
Since Tensorflow is moving towards Keras and away from Estimators, how can we incorporate our preprocessing pipelines e.g. using tf.Transform and build_serving_input_fn() (which are used for estimators), into our tf.keras…

GRS
- 2,807
- 4
- 34
- 72
5
votes
1 answer
ML Engine Batch Prediction running on wrong python version
So I have a tensorflow model in python 3.5 registered with the ML engine and I want to run a batch prediction job using it. My API request body looks like:
{
"versionName": "XXXXX/v8_0QSZ",
"dataFormat": "JSON",
"inputPaths": [
"XXXXX"
…

Andrew Cassidy
- 2,940
- 1
- 22
- 46
5
votes
3 answers
Exception during xgboost prediction: can not initialize DMatrix from DMatrix
I trained a xgboost model in Python using the Scikit-Learn Python API, and serialized it using pickle library. I uploaded the model to ML Engine, but when I try to do online predictions, i get the following exception:
Prediction failed: Exception…

Lukas
- 405
- 7
- 13
5
votes
3 answers
ML Engine Runtime version and Python version not supported
I am trying to run Google clound ml-engine following this tutorial, when executing this command :
$ gcloud ml-engine jobs submit training `whoami`_object_detection_`date +%s` \
--job-dir=gs://${YOUR_GCS_BUCKET}/train\
--packages…

Jean Bouvattier
- 303
- 3
- 19
5
votes
2 answers
Google Machine Learning Engine Python 3
the latest runtime version 1.4 of the Google machine learning engine supports Python 3.5:
https://cloud.google.com/ml-engine/docs/runtime-version-list
How do I use Python 3.5 for training models in the ML engine?
Thanks

GRW
- 83
- 1
- 10
5
votes
3 answers
Retrained inception_v3 model deployed in Cloud ML Engine always outputs the same predictions
I followed the codelab TensorFlow For Poets for transfer learning using inception_v3. It generates retrained_graph.pb and retrained_labels.txt files, which can used to make predictions locally (running label_image.py).
Then, I wanted to deploy this…

hecforga
- 53
- 5
5
votes
2 answers
gcloud ml-engine returns error on large files
I have a trained model that takes in a somewhat large input. I generally do this as a numpy array of the shape (1,473,473,3). When I put that to JSON I end up getting about a 9.2MB file. Even if I convert that to a base64 encoding for the JSON file…

Chase Midler
- 121
- 1
- 5
5
votes
1 answer
How to compute the cost of a Cloud ML job?
My Cloud ML training job completed with the output:
"consumedMLUnits": 43.24
How do I use this information to determine the cost of the training job? I can't decide between the following two options:
According to the pricing section of the…

umar
- 153
- 3
5
votes
2 answers
Convert graph (pb) to SavedModel for gcloud ml-engine predict
I trained an object detector using Cloud Machine Learning Engine according to the recent post by Google’s Derek Chow on the Google Cloud Big Data And Machine Learning Blog and now want to predict using Cloud Machine Learning Engine.
The instructions…

Chuck Finley
- 250
- 1
- 10
5
votes
1 answer
Use Google Cloud Machine Learning service to predict with a locally retrained Inception model
I have locally retrained the Inception model using the retrain.py file from Google Code Lab TensorFlow for Poets and want to use Google Cloud machine Learning service to make predictions.
Specifically, I want to modify the retrain.py file, so my…

Chuck Finley
- 250
- 1
- 10
5
votes
2 answers
'No such file or directory' error after submitting a training job
I execute:
gcloud beta ml jobs submit training ${JOB_NAME} --config config.yaml
and after about 5 minutes the job errors out with this error:
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main…

Amir Hormati
- 329
- 2
- 6