Augmented image data store wont work unless i write Augmented image Source, is this stopping me from making a data store?

1 visualización (últimos 30 días)
Compile errors says:
Error using trainingOptions (line 187)
The value of 'ValidationData' is invalid. Validation data must be a table, an ImageDatastore, or a cell
array with input data and responses.

Respuestas (2)

Walter Roberson
Walter Roberson el 11 de Abr. de 2018
augmented image data store was not introduced until R2018a.
  2 comentarios
Nathan Reilly
Nathan Reilly el 11 de Abr. de 2018
I know so everyone says use AugmentedImageSource but when i try to train with my data it says it must be from a data store which my matlab doesnt have. So i have tried using imresize for example: inputSize = [227 227 3]; imds.ReadFcn = @(loc)imresize(imread(loc),[inputSize]); Plus many combinations of this code and more. Still wont work compile error says all images must be the same size. Or it says target images are 227 227 1 but need to be 227 227 3 for alexnet, so i need to use 4Darray but cant get that to work either...
Walter Roberson
Walter Roberson el 11 de Abr. de 2018
The input images must be RGB for alexnet. You can construct RGB images from grayscale images as
imds.ReadFcn = @(loc) repmat(imresize(imread(loc),[inputSize]),[1 1 3]);

Iniciar sesión para comentar.


Helen Victoria
Helen Victoria el 14 de Dic. de 2018
Error using trainingOptions (line 262)
The value of 'ValidationData' is invalid. MiniBatchable Datastore has no responses.
Error in cifarpretrained (line 24)
options = trainingOptions('sgdm', . Am getting this error while training on alexnet using transfer.I am using 2018b version

Categorías

Más información sobre Image Data Workflows en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by