Question related to deepLearning

조회 수: 2 (최근 30일)
Zhi Ren Chai
Zhi Ren Chai 2018년 10월 7일
댓글: Zhi Ren Chai 2018년 10월 9일
  댓글 수: 1
John D'Errico
John D'Errico 2018년 10월 7일
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.

댓글을 달려면 로그인하십시오.

답변 (1개)

Shounak Mitra
Shounak Mitra 2018년 10월 8일
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

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by