error in image size
Show older comments
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
Accepted Answer
More Answers (0)
Categories
Find more on Read, Write, and Modify Image in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!