Keras 2.3.1 models

조회 수: 9 (최근 30일)
Larry Anderson
Larry Anderson 2020년 5월 26일
댓글: Sivylla Paraskevopoulou 2022년 12월 7일
Is there a way to import Keras 2.3.1 models into Matlab? I have the Keras Importer from the File Exchange installed but looks like it will only import up to version 2.2.4.

답변 (2개)

Sivylla Paraskevopoulou
Sivylla Paraskevopoulou 2022년 5월 9일
편집: Sivylla Paraskevopoulou 2022년 5월 9일
The importKerasNetwork function offers limited support for TensorFlow-Keras versions 2.2.5 to 2.4.0. For more information, see Limitations.
It is recommended that you use importTensorFlowNetwork to import your model. The importTensorFlowNetwork function supports TensorFlow versions v2.0 to 2.6. Moreover, importTensorFlowNetwork tries to generate a custom layer when you import a custom TensorFlow layer or when the software cannot convert a TensorFlow layer into an equivalent built-in MATLAB layer.
Note that you must first convert your model to the SavedModel format before importing it by using importTensorFlowNetwork.
  댓글 수: 2
Juan David Diaz
Juan David Diaz 2022년 12월 7일
The importTensorFlowNetwork function is not included in the support package.
Sivylla Paraskevopoulou
Sivylla Paraskevopoulou 2022년 12월 7일
The importTensorFlowNetwork function was introduced to the Deep Learning Toolbox Converter for TensorFlow Models support package in R2021a. Are you using MATLAB R2021a or newer?

댓글을 달려면 로그인하십시오.


Srivardhan Gadila
Srivardhan Gadila 2020년 5월 30일
As per my knowledge the "Deep Learning Toolbox Importer for Keras Models support package" installed from Add-On Explorer supports upto Keras versions 2.2.4.
Still you will be able to import a keras model which is saved in versions newer than 2.2.4 but with the following the warning:
Warning: File 'CNNKeras.h5' was saved in Keras version '2.3.1'. Import of Keras versions newer than '2.2.4' is not yet supported.
The imported model may not exactly match the model saved in the Keras file.
You can refer to Import and Export Networks for the available functions.

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by