how can i make alexnet accept 277x277x1 images
Show older comments
i got error in example TransferLearningUsingAlexNetExample Error using trainNetwork (line 140) The training images are of size 227x227x1 but the input layer expects images of size 227x227x3. my dataset 277X277x1
3 Comments
SAQIB SHEIKH
on 2 Sep 2019
you can use Software Faststone Image resizer
arun anoop m
on 17 Jul 2020
a=imread(' ');
l=alexnet;
a=imresize(a,[227 227]);
s=classify(l,a);
imshow(a);
try this.
Eline Geerits
on 4 Apr 2022
How can I apply this to an DataSet. I have abaout 4000 Images I have to resize so it would take way to long to do this for every Image indevidually.
Accepted Answer
More Answers (2)
Atika Aftab
on 10 Feb 2020
0 votes
how can i make [224 224 1] img size ?
1 Comment
arun anoop m
on 17 Jul 2020
I hope
a=imread(' ');
a=imresize(a,[224 224]);
Ayshath Afra
on 2 Apr 2020
0 votes
The training images are of size 256x256x3 but the input layer expects images of size 224x224x3.
pls help me to solve this error
1 Comment
Michael Keeling
on 5 Jun 2020
Edited: Michael Keeling
on 5 Jun 2020
You can make an augmented datastore of the images that resizes them auomatically, while leaving your raw images the same
Categories
Find more on Deep Learning Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!