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

2 次查看(过去 30 天)
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)

采纳的回答

Samir khan
Samir khan 2018-7-19
I got it!! problem was with my parallel computational toolbox..

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Image Data Workflows 的更多信息

产品


版本

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by