How to develop a mini-batch datastore of images?

1 Ansicht (letzte 30 Tage)
Yong
Yong am 2 Mär. 2022
Beantwortet: yanqi liu am 3 Mär. 2022
Hello,
I would like to see an example of defining a custom mini-batch datastore that uses images (for the purpose of deep learning). Labels of images are subfolder names.
Thanks!

Antworten (1)

yanqi liu
yanqi liu am 3 Mär. 2022
yes,sir,may be consider view 《Create Simple Deep Learning Network for Classification》
the data with subfoler can get by
unzip('MerchData.zip');
imds = imageDatastore('MerchData', ...
'IncludeSubfolders',true, ...
'LabelSource','foldernames');
[imdsTrain,imdsValidation] = splitEachLabel(imds,0.7);
and set trainingOptions by MiniBatchSize can make mini-batch parameter

Kategorien

Mehr zu Deep Learning Toolbox finden Sie in Help Center und File Exchange

Produkte


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by