From d2b5aeebf5a30fe3434bda4c851c67ee939c5a7b Mon Sep 17 00:00:00 2001 From: v-h Date: Mon, 16 Jan 2023 11:20:09 +0100 Subject: [PATCH] correct scripts --- RCNN_for_traficsigns.m | 4 ++-- RCNN_for_traficsigns_stepthree.m | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/RCNN_for_traficsigns.m b/RCNN_for_traficsigns.m index 7c33528..69043b5 100644 --- a/RCNN_for_traficsigns.m +++ b/RCNN_for_traficsigns.m @@ -147,7 +147,7 @@ options = trainingOptions('sgdm',... 'CheckpointPath',tempdir,... 'ValidationData',validationData); -netname = "netDetectorResNet50.mat" +netname = "netDetectorResNet50.mat"; if doAugmentation netname = "netDetectorResNet50_2.mat" @@ -164,7 +164,7 @@ if doTraining save netname detector; else % Load pretrained detector for the example. - load netname detector; + load (netname, detector); end % ----- quick check/test diff --git a/RCNN_for_traficsigns_stepthree.m b/RCNN_for_traficsigns_stepthree.m index 683454e..f6c71c7 100644 --- a/RCNN_for_traficsigns_stepthree.m +++ b/RCNN_for_traficsigns_stepthree.m @@ -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