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
4
votes
4 answers
Error message while submitting Google Cloud ML Training job for Tensorflow Object Detection
Trying to submit a Google Cloud ML Training job for Tensorflow Object Detection task and I am following the official guideline
Following is the job that I am submitting:
export CONFIG=trainer/cloud.yaml
export TRAIN_DIR=kt-1000/training
export…

Devjothi Dutta
- 41
- 2
4
votes
1 answer
"Attempted relative import in non-package" on Google Cloud ML
Since yesterday or the day before, I get a
ValueError: Attempted relative import in non-package
for an import in my main trainer file like
from . import mobilenet_v1 as mobilenet
when running the exact same trainer code with the exact same…

Catalin Voss
- 91
- 6
4
votes
2 answers
Google Cloud ML FAILED_PRECONDITION
I am trying to use Google Cloud ML to host a Tensorflow model and get predictions. I have a pretrained model that I have uploaded to the cloud and I have created a model and version in my Cloud ML console.
I followed the instructions from here to…

jbird
- 506
- 6
- 21
4
votes
1 answer
Can we disable GCP Stackdriver's truncation of log lines?
Stackdriver logs seems to truncate log lines exceeding ~256 chars. This is really annoying, since Stackdriver also doesn't let you filter for log lines matching a particular string, and then find its neighboring log lines.
Our use case is that…

jwayne
- 706
- 2
- 7
- 20
4
votes
2 answers
Load numpy array in google-cloud-ml job
In the model I want to launch, I have some variables which have to be initialized with specific values.
I currently store these variables into numpy arrays but I don't know how to adapt my code to make it work on a google-cloud-ml job.
Currently I…

Thibaut Loiseleur
- 814
- 8
- 21
4
votes
3 answers
Cloud-ML Job No such file or directory
I have submitted a training job to cloud ml. But, it can't find the csv file. it is there in the bucket. this is the code.
# Use scikit-learn to grid search the batch size and epochs
import numpy
from sklearn.model_selection import GridSearchCV
from…

Androidification
- 203
- 3
- 11
4
votes
1 answer
Export a basic Tensorflow model to Google Cloud ML
I am trying to export my local tensorflow model to use it on Google Cloud ML and run predictions on it.
I am following the tensorflow serving example with mnist data. There is quite a bit of difference in the way they have processed and used their…

Flame of udun
- 2,136
- 7
- 35
- 79
4
votes
3 answers
How convert a jpeg image into json file in Google machine learning
I'm working on Google cloud ML, and I want to get prediction on jpeg image. To do this, I would like to use:
gcloud beta ml predict --instances=INSTANCES --model=MODEL…

Davide Biraghi
- 626
- 1
- 7
- 17
4
votes
1 answer
How can I train from BigQuery instead of csv files in Cloud ML?
My training data is in BigQuery. How can I use it to train a model in Cloud ML?

rhaertel80
- 8,254
- 1
- 31
- 47
3
votes
0 answers
524 Error and Jupyterlab api status - Unhealthy
How can we solve below error on GCP JupyterLab? tried already available solutions on stackoverflow + google cloud but none of them working. Please help.
[1]: https://i.stack.imgur.com/IfVWt.png

Jitendra Jangid
- 31
- 2
3
votes
0 answers
How to specify document language while importing a dataset in Google Cloud AutoML?
I am trying to train a model for text classification in VertexAI AutoML (Google Cloud) using documents in Spanish. I imported the documents as JSON lines and tried specifying the language of each document as follows:
{"textContent":"Esto está…

jroled
- 61
- 5
3
votes
1 answer
Vertex AI endpoints timing out
I am using vertex-ai endpoints to serve a deep learning service.
My service takes approximately 30s - 2 minutes to respond on CPU depending on the size of the input. I noticed that when the input size takes more than one minute to respond, the API…

user297904
- 417
- 1
- 4
- 12
3
votes
0 answers
Custom Model for Batch Prediction on Vertex.ai
I want to run batch predictions inside Google Cloud's vertex.ai using a custom trained model. I was able to find documentation to get online prediction working with a custom built docker image by setting up an endpoint, but I can't seem to find any…

shortcipher3
- 1,292
- 9
- 22
3
votes
2 answers
Run ID in Kubeflow Pipelines on Vertex AI
I am trying to run Kubeflow Pipelines with the new Vertex AI on GCP.
Previously, in Kubeflow Pipelines, I was able to use the Run ID in my Pipeline by utilizing dsl.RUN_ID_PLACEHOLDER or {{workflow.uid}}. My understanding was that…

ML6-Liam
- 41
- 5
3
votes
2 answers
Severities of all logs on AI Platform are errors
On Google AI Platform, all logs printed on stderr are interpreted as ERROR.
Is there any way to print logs as INFO, WARNING, and CRITICAL?

Shuhei Fujiwara
- 193
- 1
- 7