error in image size
Afficher commentaires plus anciens
i want to train alexnet by transfer learning for classifying two classes I followed steps in tutorials. all seems good . I did all steps. I prepared data for processing all images are 227-227-3 but when i write
newnet=trainNetwork(net,data,options)
i get this error:
Trial>> [newnet,info] = trainNetwork(trainImgs, layers, options);
Training on single CPU.
Initializing image normalization.
Error using trainNetwork (line 140)
Unexpected image size: All images must have the same size.
Caused by:
Error using nnet.internal.cnn.MiniBatchDatasourceDispatcher>iCellTo4DArray (line 328)
Unexpected image size: All images must have the same size.
I croped and resized all images in my folder. They all have 227-227-3 uint8 but it doesn't work. I'm blocked any help
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Read, Write, and Modify Image 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!