from PIL import Image
from tensorflow.keras.preprocessing import image

img = image.load_img(img_path, target_size=image_size[:2])
x = image.img_to_array(img)
x = np.expand_dims(x, axis=0)
x = preprocess_input(x)

feed_dict = {
    input_tensor_name: x
}
preds = tf_sess.run(output_tensor, feed_dict)

print('Predicted:', decode_predictions(preds, top=3)[0])
