I have code like the following:
model = tf.saved_model.load(input_model_path)
and my input is a model.pb.
I now want to convert it to keras .h5 but I don't know how to do this. Is there a way to convert this saved model to keras format directly?
I also tried doing it with
model = tf.keras.models.load_model(input_model_path)
but this gives me another error (IndexError)