필터 지우기
필터 지우기

CNN training and testing (resizing training images)

조회 수: 2 (최근 30일)
mariam aboelwafa
mariam aboelwafa 2017년 11월 7일
답변: sam Boadi 2018년 8월 14일
Dear All,,, It's my first time to use the Convolutional Neural Net training commands. I'm using this line to resize my training images
Folder = '256_ObjectCategories'; digitData = imageDatastore(Folder,'IncludeSubfolders',true,'LabelSource','foldernames'); digitData.ReadFcn = @(loc)imresize(imread(loc),[128 128],'nearest','Colormap','original');
However, I still get this error:
Unexpected image size: All images must have the same size.
Any help please ?
  댓글 수: 1
mariam aboelwafa
mariam aboelwafa 2017년 11월 7일
I also can't completely understand this line: digitData.ReadFcn = @(loc)imresize(imread(loc),[128 128],'nearest','Colormap','original'); But I found it in MathWorks documentation

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

답변 (1개)

sam Boadi
sam Boadi 2018년 8월 14일
use imresize. anyway is the dataset in an imageDataStore?

태그

Community Treasure Hunt

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

Start Hunting!

Translated by