Import Keras network From Python to Matlab
조회 수: 43 (최근 30일)
이전 댓글 표시
Hi,
I want to import a trained TensorFlow Keras model from Python to Matlab. I already have a '.h5' file with this model, but I keep getting the error 'Keras network with multiple inputs or multiple outputs is not supported when one of the network inputs is sequential' when I use the function ImportKerasNetwork or ImportKerasLayers.
Is there any way in solving this? Or is there any other way to import this model into Matlab?
댓글 수: 0
답변 (1개)
Sivylla Paraskevopoulou
2022년 11월 15일
You can try to import your TensorFlow model by using the importTensorFlowNetwork function, which is a newer function than importKerasNetwork and supports more options.
You have to save your .h5 model in the SavedModel format to import it by using the importTensorFlowNetwork function.
댓글 수: 6
Sivylla Paraskevopoulou
2022년 11월 18일
편집: Sivylla Paraskevopoulou
2022년 11월 18일
You are welcome! For this workflow, you might find this GitHub example helpful: Image Classification in MATLAB Using TensorFlow.
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Data Workflows에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!