Train a trained object detector with more epochs

조회 수: 2 (최근 30일)
Hao Yu Wang
Hao Yu Wang 2019년 2월 19일
답변: Hao Yu Wang 2019년 3월 15일
Hello,
I already trained a object detector with following code:
% Training option settings
options = trainingOptions('sgdm', ...
'MiniBatchSize', 1, ...
'InitialLearnRate', 1e-3, ...
'MaxEpochs', 5, ...
'VerboseFrequency', 200, ...
'CheckpointPath', tempdir);
detector = trainFasterRCNNObjectDetector(trainingData, layers, options)
I would like to train more epochs based on above codes and do not re-run the script.
How can I do?
Thank you!
Eric

채택된 답변

Hao Yu Wang
Hao Yu Wang 2019년 3월 15일
First of all, the title is not clear.
But my condition is different from the offcical website example. I used function trainFasterRCNNObjectDetector and the type of my network is DAGNetwork. As a result, the solution for my situation is shown below
load('rcnn.mat'); % Load previously trained network.
net = layerGraph(rcnn.Network); % Transform DAGNetwork to make it excutable for trainFasterRCNNObjectDetector.
rcnn = trainFasterRCNNObjectDetector(trainingImages, layerGraph(net), options);
save('rcnn.mat', 'rcnn'); % Save trained network.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by