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

8 ビュー (過去 30 日間)
When Iam trying to import a custom model file 'model.h5' created using keras - model.save_weights()
Please help

採用された回答

Don Mathis
Don Mathis 2019 年 1 月 4 日
編集済み: Don Mathis 2019 年 1 月 4 日
It's a file that contains weights only, without the architecture. You need to create it using model.save(), not model.save_weights().
  1 件のコメント
Sabhapathy Myakal
Sabhapathy Myakal 2019 年 1 月 7 日
Thank you, what you mentioned is correct.
Sorry for a late reply, it took sometime for me to check it.

サインインしてコメントする。

その他の回答 (1 件)

dror yemini
dror yemini 2019 年 6 月 25 日
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)

カテゴリ

Help Center および File ExchangeDeep Learning Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by