|
|
|
@ -39,7 +39,7 @@
|
|
|
|
|
close all;
|
|
|
|
|
clear;
|
|
|
|
|
|
|
|
|
|
doTraining = true;
|
|
|
|
|
doTraining = false;
|
|
|
|
|
|
|
|
|
|
% first we need the data...
|
|
|
|
|
dataDir = 'Picturedata'; % Destination-Folder for provided (img) Data
|
|
|
|
@ -141,7 +141,7 @@ options = trainingOptions('sgdm',...
|
|
|
|
|
'CheckpointPath',tempdir,...
|
|
|
|
|
'ValidationData',validationData);
|
|
|
|
|
|
|
|
|
|
netname = "netDetectorResNet50_stepthree.mat"
|
|
|
|
|
netname = "netDetectorResNet50_stepthree.mat";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -155,7 +155,7 @@ if doTraining
|
|
|
|
|
save netname detector;
|
|
|
|
|
else
|
|
|
|
|
% Load pretrained detector for the example.
|
|
|
|
|
load netname detector;
|
|
|
|
|
load (netname, 'detector');
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
% ----- quick check/test
|
|
|
|
|