Deep Network Designer Toolbox

2 次查看(过去 30 天)
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.

回答(1 个)

Srivardhan Gadila
Srivardhan Gadila 2021-4-16
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.

类别

Help CenterFile Exchange 中查找有关 Deep Learning Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by