error in image size
Mostrar comentarios más antiguos
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
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Read, Write, and Modify Image en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!