getting this error: "Error using importKerasNetwork (line 93) Unable to import layers from file 'model.h5' because it contains no 'model_config' attribute."
1 次查看(过去 30 天)
显示 更早的评论
When Iam trying to import a custom model file 'model.h5' created using keras - model.save_weights()
Please help
0 个评论
采纳的回答
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 个)
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)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Deep Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!