Filter löschen
Filter löschen

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

3 Ansichten (letzte 30 Tage)
When Iam trying to import a custom model file 'model.h5' created using keras - model.save_weights()
Please help

Akzeptierte Antwort

Don Mathis
Don Mathis am 4 Jan. 2019
Bearbeitet: Don Mathis am 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().

Weitere Antworten (1)

dror yemini
dror yemini am 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)

Kategorien

Mehr zu Sequence and Numeric Feature Data Workflows finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by