how do i change the size of the image
12 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi.
i want to train my data set(X-ray images) using googlenet..when i m tring to do m getting this error.Could you please help me..
Error using trainNetwork (line 184)
The training images are of size 224×224×1 but the input layer expects images of size 224×224×3.
Error in training (line 44)
net = trainNetwork(Resized_Training_Dataset, New_Network, Training_Options);
5 Kommentare
Antworten (2)
Image Analyst
am 8 Okt. 2021
You're passing in a gray scale image when it wants a color image. When you resized them you also needed to convert them to color, like
rgbImage = cat(3, grayImage, grayImage, grayImage);
3 Kommentare
Murad Alr
am 22 Apr. 2022
Resized_Training_Image=augmentedImageDatastore(Input_Layer_Size,Training_Dataset,'ColorPreprocessing','gray2rgb');
Resized_Validation_Image=augmentedImageDatastore(Input_Layer_Size,Validation_Dataset,'ColorPreprocessing','gray2rgb');
0 Kommentare
Siehe auch
Kategorien
Mehr zu Image Data Workflows finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!