Deep Network Designer Toolbox

8 views (last 30 days)
Abdulazeez Abdulmalik
Abdulazeez Abdulmalik on 13 Apr 2021
Answered: Srivardhan Gadila on 16 Apr 2021
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.

Answers (1)

Srivardhan Gadila
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.

Community Treasure Hunt

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

Start Hunting!