Saving a trained CNN after training

조회 수: 17 (최근 30일)
Malayappan Shridhar
Malayappan Shridhar 2020년 3월 16일
댓글: Malayappan Shridhar 2020년 7월 13일
I am running a digit classification CNN in Matlab. After training I wish to save the network for future use in other applications. I tried the following commands:
filename = 'malsCNN_digit.mat';
save (filename);
This gives me an error. I then tried
newNet = net;
save newNet.
I get an error again. Frankly I am not sure why I am getting errors. Help is appreciated
  댓글 수: 1
Jakob B. Nielsen
Jakob B. Nielsen 2020년 3월 16일
Can you post the error code you get?

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

답변 (1개)

Uttiya Ghosh
Uttiya Ghosh 2020년 6월 18일
Hi Malayappan,
From my understanding you want to save a digit classification CNN (with the name net) as malsCNN_digit.mat for future use in other applications. You can use the following code to save it. After the code is successfully excetued, malsCNN_digit.mat will be created in your working directory which will contain your network with the name as net.
save('malsCNN_digit.mat', 'net');
For more information, refer to the following links.
  댓글 수: 1
Malayappan Shridhar
Malayappan Shridhar 2020년 7월 13일
Thank you. I am trying it out as I write this note of thanks.

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

카테고리

Help CenterFile Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by