CNN training and testing (resizing training images)
Afficher commentaires plus anciens
Dear All,,, It's my first time to use the Convolutional Neural Net training commands. I'm using this line to resize my training images
Folder = '256_ObjectCategories'; digitData = imageDatastore(Folder,'IncludeSubfolders',true,'LabelSource','foldernames'); digitData.ReadFcn = @(loc)imresize(imread(loc),[128 128],'nearest','Colormap','original');
However, I still get this error:
Unexpected image size: All images must have the same size.
Any help please ?
1 commentaire
mariam aboelwafa
le 7 Nov 2017
Réponses (1)
sam Boadi
le 14 Août 2018
0 votes
use imresize. anyway is the dataset in an imageDataStore?
Catégories
En savoir plus sur Deep Learning Toolbox dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!