MATLAB Answers

getting this error: "Error using importKerasNetwork (line 93) Unable to import layers from file 'model.h5' because it contains no 'model_config' attribute."

6 views (last 30 days)
When Iam trying to import a custom model file 'model.h5' created using keras - model.save_weights()
Please help

  0 Comments

Sign in to comment.

Accepted Answer

Don Mathis
Don Mathis on 4 Jan 2019
Edited: Don Mathis on 4 Jan 2019
It's a file that contains weights only, without the architecture. You need to create it using model.save(), not model.save_weights().

  1 Comment

Sign in to comment.

More Answers (1)

dror yemini
dror yemini on 25 Jun 2019
also note may recive error
so just change
#Expected input to be a scalar with value >= 1e-05
x = BatchNormalization(epsilon=1e-03, momentum=0.9, weights=None)(x)

  0 Comments

Sign in to comment.

Sign in to answer this question.


Translated by