Error in Semantic Segmentation Using Deep Learning Demo

1 回表示 (過去 30 日間)
JW
JW 2021 年 2 月 4 日
コメント済み: Melvin Mathew 2021 年 4 月 12 日
Hello everyone,
I ran into an error at this line:
pximds = pixelLabelImageDatastore(imdsTrain,pxdsTrain, ...
'DataAugmentation',augmenter);
The error message is this:
Error using images.internal.datastore.PixelLabelImageDatastore (line 244)
pixelLabelImageDatastore supports ColorPreprocessing, DataAugmentation and OutputSize properties only for 2-D
images. See the transform method to resize, augment or modify 3D data.
Error in pixelLabelImageDatastore (line 195)
this = this@images.internal.datastore.PixelLabelImageDatastore(varargin{:});
I've checked the images in my CamVid folder and all of them are 2-D PNG files, as downloaded. I have not changed the augmenter line before in anyway. May I know what is causing the error? Thank you!
  2 件のコメント
Madhav Thakker
Madhav Thakker 2021 年 2 月 9 日
Hi JW,
augmenter = imageDataAugmenter('RandXReflection',true,...
'RandXTranslation',[-10 10],'RandYTranslation',[-10 10]);
Did you change the definition?
Melvin Mathew
Melvin Mathew 2021 年 4 月 12 日
I have the same issue. Was this resolved in any way?

サインインしてコメントする。

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by