資源簡介
基于matlab的人臉識別訓練部分的代碼實現。訓練部分的代碼
代碼片段和文件信息
%%?Create?Simple?Deep?Learning?Network?for?Classification
%%
%?This?example?shows?how?to?create?and?train?a?simple?convolutional?neural
%?network?for?deep?learning?classification.?Convolutional?neural?networks
%?are?essential?tools?for?deep?learning?and?are?especially?suited?for
%?image?recognition.?Learn?how?to?set?up?network?layers?image?data?and
%?training?options?train?the?network?and?test?the?classification
%?accuracy.
%%?Load?and?Explore?the?Image?Data
%?Load?the?digit?sample?data?as?an?|ImageDatastore|?object.
digitDatasetPath?=?fullfile(matlabroot‘toolbox‘...
‘nnet‘‘nndemos‘?‘nndatasets‘‘DigitDataset‘);
digitData?=?imageDatastore(digitDatasetPath?...
????????‘IncludeSubfolders‘true‘LabelSource‘‘foldernames‘);
????
%%?
%?|imageDatastore|?function?labels?the?images?
評論
共有 條評論