Train Stacked Auto encoders for potholes datasets classification

1 回表示 (過去 30 日間)
Srinidhi Gorityala
Srinidhi Gorityala 2020 年 6 月 18 日
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, ...

回答 (0 件)

カテゴリ

Help Center および File ExchangePattern Recognition and Classification についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by