필터 지우기
필터 지우기

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

조회 수: 3 (최근 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개)

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 CenterFile Exchange에서 Sequence and Numeric Feature Data Workflows에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by