Is it possible to save results after every epoch? so that if there is some issue with power i can continue my training from the same point.

조회 수: 3 (최근 30일)
i am finetunning alexnet on FER2013
i want to set epoch size 300 but it takes alot of time in which there is a chance that my pc will turn off due to power issue.
so is it possible that i save results or "something" after every epoch so that i can continue my trainning from where it was stoped.
thanks in advance.

채택된 답변

yanqi liu
yanqi liu 2021년 10월 28일
sir,may be use ref https://www.mathworks.com/help/releases/R2021a/deeplearning/ug/resume-training-from-a-checkpoint-network.html
checkpointPath = pwd;
options = trainingOptions('sgdm', ...
'InitialLearnRate',0.1, ...
'MaxEpochs',20, ...
'Verbose',false, ...
'Plots','training-progress', ...
'Shuffle','every-epoch', ...
'CheckpointPath',checkpointPath);
  댓글 수: 1
Mamoon ul Hassan Jan
Mamoon ul Hassan Jan 2021년 10월 29일
Thankyou Mr.yanqi liu.
my issue is resolved .
acctuly i found an easy way of doing it , if you are using deep network designer tool box all you have to do is to give a path for checkpoint and check the check box of checkpoints in training options .
💕

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Parallel and Cloud에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by