This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from keras.models import load_model | |
| import numpy as np | |
| model = load_model('trained_keras_model.h5') | |
| from keras import backend as K | |
| import tensorflow as tf | |
| signature = tf.saved_model.signature_def_utils.predict_signature_def( | |
| inputs={'image': model.input}, outputs={'scores': model.output}) |