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)
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)