How do I get a TensorFlow/Keras model that takes images as input to serve predictions on Cloud ML Engine?
There are multiple questions (examples: 1 , 2 , 3 , 4 , 5 , 6 , etc.) trying to address the question of how to handle image data when serving predictions for TensorFlow/Keras models in Cloud ML Engine. Unfortunately, some of the answers are out-of-date and none of them comprehensively addresses the problem. The purpose of this post is to provide a comprehensive, up-to-date answer for future reference. This answer is going to focus on Estimators , which are high-level APIs for writing TensorFlow code and currently the recommended way. In addition, Keras uses Estimators to export models for