how do i change the size of the image
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (2)
Image Analyst
el 8 de Oct. de 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);
Murad Alr
el 22 de Abr. de 2022
Resized_Training_Image=augmentedImageDatastore(Input_Layer_Size,Training_Dataset,'ColorPreprocessing','gray2rgb');
Resized_Validation_Image=augmentedImageDatastore(Input_Layer_Size,Validation_Dataset,'ColorPreprocessing','gray2rgb');
0 comentarios
Ver también
Categorías
Más información sobre Image Data Workflows en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!