MATLAB Answers

the value of validation data is invalid

25 views (last 30 days)
kavitha kethavath
kavitha kethavath on 1 May 2020
Commented: Neus Alcon on 20 May 2020
the value of validation data is invalid. augmenetedImageDataStore 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.
this is the error raised while training my own image me?

  1 Comment

Neus Alcon
Neus Alcon on 20 May 2020
I'm trying to trin a Neural network and I have the same error... Did you solve it? Actually I don't know what I have to do to fix that error. Could you help me please? I would be very greatful!

Sign in to comment.

Answers (1)

Shubh Sahu
Shubh Sahu on 4 May 2020
It seems that the images in Input dosen't have consistent channel. To know more on RGB channel you can go to this link. augmentedimagedatastor works only with consistent number of channel in each image. Please use ColorPrerocessing to make channel consistent. For more information you can look into the following link.


Sign in to comment.

Community Treasure Hunt

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

Start Hunting!

Translated by