Incorporate Keras Network WITH LSTM Layer

조회 수: 4 (최근 30일)
David Kuske
David Kuske 2017년 11월 9일
댓글: David Willingham 2021년 11월 30일
I have a compiled and trained networkmodel with an LSTM Layer, as .py or saved as .HDF5 using Keras with Tensorflowbackend. Is there a way to use it (give input, predict output) in Matlab? The importKerasLayer function seems not to work with LSTMs at all.

답변 (2개)

Sivylla Paraskevopoulou
Sivylla Paraskevopoulou 2021년 2월 12일
What version are you using? Since R2018b, you can Import LSTM and BiLSTM layers from TensorFlow-Keras. For a list of support Keras layers see the documentation of importKerasNetwork and importKerasLayers functions. Also, note that importKerasNetwork or importKerasLayers support importing a TensorFlow-Keras network only in HDF5 or JSON format.

Phan Phat
Phan Phat 2021년 11월 28일
Could you tell more detail about how to import the LSTM model on MATLAB? I used importKerasNetwork; however, seem does not work. Thanks!
  댓글 수: 1
David Willingham
David Willingham 2021년 11월 30일
Hi, I'd recommend using the importTensorFlowNetwork instead as it has more support for the layers that can be imported. Note: you'll need to update your Keras network to TensorFlow 2.0 in order to use this.

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

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by