diff --git a/examples/cnn_train.m b/examples/cnn_train.m index d2ed12f6..be84e506 100644 --- a/examples/cnn_train.m +++ b/examples/cnn_train.m @@ -89,6 +89,7 @@ modelPath = fullfile(opts.expDir, 'net-epoch-%d.mat') ; modelFigPath = fullfile(opts.expDir, 'net-train.pdf') ; if opts.continue + modelPath(strfind(modelPath,'\')) = '/'; if exist(sprintf(modelPath, epoch),'file'), continue ; end if epoch > 1 fprintf('resuming by loading epoch %d\n', epoch-1) ;