I have downloaded a model from Hub. The archive contains TensorFlow 2 saved model and if decompressed shows a file named saved_model.pb and a variables folder that inside has 2 files variables.data-00000-of-00001 and variables.index.
This model seems cannot be passed to tf.keras.models.load_model()
I have tried
my_model=tf.saved_model.load('extraction_path')
but the resulting loaded_model object seems it isn't a normal model object ready to be used with something like my_model=model.predict(image)and the documentation section about the function isn't clear.
What is the proper procedure that should be used with this model format?
The following works for me on Python 3.9: