Question related to deepLearning

1 view (last 30 days)
Zhi Ren Chai
Zhi Ren Chai on 7 Oct 2018
Commented: Zhi Ren Chai on 9 Oct 2018
  1 Comment
John D'Errico
John D'Errico on 7 Oct 2018
Why in the name of god and little green apples why do people insist on pasting in tiny, unreadable screenshots of their entire screen, zoomed down, so the font is effectively around 3 point, and we are asked to try to decipher a pixelated mess?
Paste in the TEXT of what you did, as TEXT. Select the block of code you just pasted in, then click on the "{} Code" button above the edit box, to format it to be readable. Then paste in the complete error message - the stuff in red.

Sign in to comment.

Answers (1)

Shounak Mitra
Shounak Mitra on 8 Oct 2018
Hi Zhi,
The error message is very clear. Look at the first layer in AlexNet - the input layer. It accepts inputs of size 227x227x3. You need to resize your input image:
inputImg = imread('location_of_your_image');
resizedImg = imresize(inputImg, [227 227]);
This should solve the issue.
P.S. I agree with what John mentioned. Please follow his advice so that it's easier for us from next time on.
-- Shounak

Categories

Find more on Image Data Workflows 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!