Deep Network Designer Toolbox
2 views (last 30 days)
Show older comments
Hi, I am trying to train a simple network using the Deep Network Designer Toolbox.
Please how do I go about debbugging the error message below without exporting to code from deep network designer?
'augmentedImageDatastore 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.'
Thank you.
0 Comments
Answers (1)
Srivardhan Gadila
on 16 Apr 2021
As the error clearly states, it seems that your data contains a mixture of grayscale and RGB images, use ColorPreprocessing Name-Value pair argument to ensure that all output images have the same number of channels as required by the imageInputLayer of your network.
Refer to the description of ColorPreprocessing of AugmentedImageDatastore and Import Data into Deep Network Designer for more information.
0 Comments
See Also
Categories
Find more on Deep Learning Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!