Problem in sematnic segmentation error: pixel Label IDs must be unique

조회 수: 1 (최근 30일)
VALERIA CROCE
VALERIA CROCE 2022년 3월 31일
답변: Chetan 2023년 11월 10일
Hi,
I am trying to classify a set of images using deep learning, following the example provided by https://it.mathworks.com/help/vision/ug/semantic-segmentation-using-deep-learning.html
However, when I run the camvidPixelLabelIDs function, I get the following error:
The value of 'pixelLabelID' is invalid. The
pixel label IDs must be unique.
[location, classes, values,params] = parseInputs(varargin{:});
Any insights on this? Thank you to anyone who will answer

답변 (1개)

Chetan
Chetan 2023년 11월 10일
I understand that you're attempting to classify a set of images using deep learning, following a example. However, you're encountering an error when running the 'camvidPixelLabelIDs' function, stating that pixel label IDs must be unique
The error you're encountering likely stems from having duplicate values in the pixel label IDs you're providing to the 'pixelLabelDatastore' function. This function creates a datastore for pixel label data, used for semantic segmentation tasks in computer vision.
Here's how to resolve this issue:
  • Ensure that the pixel label IDs you're providing to the 'pixelLabelDatastore' function are unique.
  • You can verify this by examining the output of the 'camvidPixelLabelIDs' function.
Here's an example:
labelIDs = camvidPixelLabelIDs();
disp(unique(labelIDs));
This will display the unique values of 'labelIDs'.
For more details on 'pixelLabelDatastore' and the 'PixelLabelID' argument refer to following Mathworks Documentation
I hope this helps!

카테고리

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