Nayeem
Nayeem

Reputation: 91

gcloud local prediction

I trained a Pet dataset onto Google cloud, downloaded the trained model to local PC, using gcloud. Task: To classify test set, locally with the trained model

A) If I use gcloud like

    $ gcloud ml-engine local predict --model-dir=saved_model/ --json-instances=inputs.json

Error: prediction_lib.PredictionError: (4, "Exception during running the graph: invalid literal for long() with base 10: '\xff\xd8\xff\xe0'")

Upvotes: 0

Views: 327

Answers (1)

yxshi
yxshi

Reputation: 244

Your model does accept an array for the image, not JPG strings. Please see the answer to tensorflow serving prediction not working with object detection pets example

If you want to use your current input, you may re-export the model with --input_type encoded_image_string_tensor.

Upvotes: 2

Related Questions