Deep Network Designer Toolbox

조회 수: 2 (최근 30일)
Abdulazeez Abdulmalik
Abdulazeez Abdulmalik 2021년 4월 13일
답변: Srivardhan Gadila 2021년 4월 16일
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에서 Image Data Workflows에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by