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

Time:01-04

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

CodePudding user response:

Maybe this code will help you:

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