Saving a trained CNN after training

26 vues (au cours des 30 derniers jours)
Malayappan Shridhar
Malayappan Shridhar le 16 Mar 2020
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 commentaire
Jakob B. Nielsen
Jakob B. Nielsen le 16 Mar 2020
Can you post the error code you get?

Connectez-vous pour commenter.

Réponses (1)

Uttiya Ghosh
Uttiya Ghosh le 18 Juin 2020
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 commentaire
Malayappan Shridhar
Malayappan Shridhar le 13 Juil 2020
Thank you. I am trying it out as I write this note of thanks.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Deep Learning Toolbox dans Help Center et File Exchange

Produits


Version

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by