필터 지우기
필터 지우기

How to train googlenet network by using Images with different size?

조회 수: 4 (최근 30일)
Kaniska Samanta
Kaniska Samanta 2019년 4월 29일
I have an imageDatastore containing RGB images with different file size though I resized all the images in 224x224 resolution. when I am using 'trainNetwork' function it shows error, 'Unexpected image size: All images must have the same size.' I tried image augmentation but it shows, 'augmentedImageSource cannot form MiniBatches of data because input image sizes differ in 3rd dimension. Consider using 'ColorPreprocessing' option to ensure all augmented images have same number of channels'. I used ColorPreprocessing option 'rgb2gray' but it makes the images dimention as 224x224x1 but googlenet is asking for 224x224x3. Any solution?
Thank you..
  댓글 수: 1
Mohammed Zubair Mohammed Shamim
Mohammed Zubair Mohammed Shamim 2019년 6월 21일
Option 1:
Remove all files with non "JPG" extensions from your dataset (e.g. JPEG, TIFF, PNG etc)
Option 2:
Use a batch converter (free online) to convert all non-JPG files into JPG.
I utilzed option 2.
Hope this helps.

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

답변 (0개)

카테고리

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