Using a python trained neural network

조회 수: 30 (최근 30일)
Sania Gul
Sania Gul 2022년 10월 25일
댓글: Sania Gul 2022년 10월 26일
Can you please tell me how I can save a neural network after training,in Jupiter notebook and retrieve it in MATLAB for testing on the TEST dataset.
Should I store it without .h5 or with h5 extension? A new folder "MyModel" is created, when I run generator.save("MyModel") and there is a file inside it with name "saved_model.pb"? How it is loaded and tested in MATLAB 2019a version?
  댓글 수: 2
Sania Gul
Sania Gul 2022년 10월 26일
Wow. That's great. Tnk u sooooooooo much.
Sania Gul
Sania Gul 2022년 10월 26일
MATLAB is the BEST

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

채택된 답변

David Willingham
David Willingham 2022년 10월 25일
Hi Sania,
I would recommend saving the model in the TensorFlow saved model format and then import it via the TensorFlow converter using the function importTensorFlowNetwork.
To save a model in the TensorFlow saved model format use the following python code:
model.save("MyModel")

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by