Home > Software design >  Extract model structure from .h5 and .gz file
Extract model structure from .h5 and .gz file

Time:01-01

Can you extract the machine learning model structure (like the individual layers) from a .h5 or .gz file?

CodePudding user response:

Maybe this code will help you:

savedModel=load_model('Model.h5')
summ = savedModel.summary()
print(summ)
  • Related