-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Request payload size exceeds the limit: 157286 bytes. #1247
Description
Hi,
-
In which file did you encounter the issue?
/tree/master/ml_engine/online_prediction -
Did you change the file? If so, how?
I am trying to run the predict_json() for a reshaped image of size (1,244,244,3). It seems after serializing the JSON size is in order of 6.5 MB. So I am getting this error:
Request payload size exceeds the limit: 157286 bytes.
Which I think, directly is connected to the Google cloud data framework. I know it is not an issue with this directory but I am wondering how I can solve it within the online prediction framework. I need to do the online and real-time prediction within the python framework. So, It won't be possible to save the images beforehand on the storage and pass the path to the data.
How do others get around doing online predictions for large data? Or I am doing something wrong ...
even If I want to store the data in real-time how would it be possible within this load-size limit?
I mean let assume a scenario that I am reading the image from a device in realtime I need the prediction result for it, so, I should either send them with my request to the cloud for the prediction or I should send them with a request to save the data and then do the prediction.
Thanks.