Export training-progress plots
Show older comments
I am using Matlab on a remote system. I use the -nodesktop flag and interact via command line.
I use trainnet to train deep learning networks. I would like to save and export the training-progress plots for viewing on a local system. Is this possible and if so, how do I do it?
Thank you.
Answers (2)
Hey Matthew,
For exporting the training-progress plots generated on a remote MATLAB machine, you can do the following:
- Save the plots using MATLAB on the remote machine itself. You may find the plot and save it programmatically. To get a better idea, have a look at the below mentioned code snippet from this MATLAB Answer post: https://www.mathworks.com/matlabcentral/answers/831163-save-finalized-training-progress-plots-using-outputfcn
currentfig = findall(groot, 'Tag', 'NNET_CNN_TRAININGPLOT_UIFIGURE');
savefig(currentfig,'test.fig');
- Alternatively, use a custom plot function in the "trainingOptions", or save the plot manually as specified in the following documentation: https://www.mathworks.com/help/deeplearning/ref/trainingoptions.html#bvniuj4
- For exporting a copy of the file to your local system, you can transfer the file using scp commad. For instance,the following command would transfer the plot figure to your local system:
scp username@remote_host:/path/to/training_progress.png /local/path/
- You may find other file transfer utilities for your usage in the following documentation: https://www.mathworks.com/help/cloudcenter/ug/transfer-data-with-standard-utilities.html
I hope this was helpful!
Matthew Miller
on 26 Sep 2024
0 votes
Categories
Find more on MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!