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

2 Ansichten (letzte 30 Tage)
VALERIA CROCE
VALERIA CROCE am 31 Mär. 2022
Beantwortet: Chetan am 10 Nov. 2023
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

Antworten (1)

Chetan
Chetan am 10 Nov. 2023
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!

Kategorien

Mehr zu Deep Learning Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by