Train Stacked Auto encoders for potholes datasets classification

Helo, iam working on pothole dataset image classification using train stacked auto encoders. Iam gettin few errors and iam unable to load the dataset . Could any one please help me in solving this error.
clc;
clear all;
close all;
myTrainingFolder = 'C:\Users\Admin\Desktop\Major Project\dataset';
imds = imageDatastore(myTrainingFolder,'IncludeSubfolders', true, 'LabelSource', 'foldernames');
labelCount = countEachLabel(imds);
numClasses = height(labelCount);
numImagesTraining = numel(imds.Files);
%% Create training and validation sets
[imdsTrainingSet, imdsValidationSet] = splitEachLabel(imds,0.7,'randomized');
rng('default');
hiddenSize1 = 100;
autoenc1 = trainAutoencoder(imdsTrainingSet,hiddenSize1, ...
'MaxEpochs',400, ...
'L2WeightRegularization',0.004, ...
'SparsityRegularization',4, ...
'SparsityProportion',0.15, ...
'ScaleData', false);
view(autoenc1);
figure()
plotWeights(autoenc1);
ERROR:
Error in Autoencoder.train (line 510)
[X,visualizationDimensions, trainedOnImages] = iConvertToDouble(X);
Error in trainAutoencoder (line 109)
autoenc = Autoencoder.train(X, autonet, paramsStruct.UseGPU);
Error in encoder (line 15)
autoenc1 = trainAutoencoder(myTrainingFolder,hiddenSize1, ...

Risposte (0)

Categorie

Scopri di più su Deep Learning Toolbox in Centro assistenza e File Exchange

Prodotti

Release

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by