How to convert tensorflow model to keras model? .pb file to .hdf5?
Asked Answered
H

1

9

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

Haddix answered 18/9, 2019 at 5:32 Comment(2)
I guess this is a duplicate of #59376179Orchestrate
Does this answer your question? Tensorflow (.pb) format to Keras (.h5)Rafaelrafaela
L
1

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

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

Check similar issue https://mcmap.net/q/1320453/-tensorflow-pb-format-to-keras-h5 Well explained about conversion of .pb to .H5 format.

Libelant answered 18/9, 2019 at 5:32 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.