MATLAB Answers

the process is stuck in this form and not able to proceed further. i have waited about an hour but still nothing happened.

2 views (last 30 days)
Samir khan
Samir khan on 13 Jul 2018
Answered: Samir khan on 19 Jul 2018
Training on single CPU.
Initializing image normalization.
|=========================================================================================|
| Epoch | Iteration | Time Elapsed | Mini-batch | Mini-batch | Base Learning|
| | | (seconds) | Loss | Accuracy | Rate |
|=========================================================================================|
%%The code i am using is this.
clc;
clear;
close all;
net=alexnet;
layers=net.Layers;
imds=imageDatastore('Flowers',...
'IncludeSubfolders',true,...
'LabelSource','foldername');
[test, train]=splitEachLabel(imds,.7);
numclass=numel(categories(imds.Labels));
layers(end)=classificationLayer;
layers(end-2)=fullyConnectedLayer(12);
opt=trainingOptions('sgdm','InitialLearnRate',0.001);
[newnet, info]=trainNetwork(train,layers,opt);
plot(info.TrainingLoss)

  0 Comments

Sign in to comment.

Accepted Answer

More Answers (0)

Sign in to answer this question.