Srivatsa Kulkarni
Srivatsa Kulkarni

Reputation: 91

How to convert tensorflow model to keras model? .pb file to .hdf5?

I have searched for hours on google but have not seen any code/package to convert.
Any guidance on this would be highly appreciated.

Upvotes: 9

Views: 3580

Answers (1)

user11530462
user11530462

Reputation:

Use tf.keras.models.load_model('Model')

Instead of tf.keras.models.load_model('saved_model.pb')

Check similar issue https://stackoverflow.com/a/62211811/14290244 Well explained about conversion of .pb to .H5 format.

Upvotes: 1

Related Questions