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

2 vues (au cours des 30 derniers jours)
VALERIA CROCE
VALERIA CROCE le 31 Mar 2022
Réponse apportée : Chetan le 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

Réponses (1)

Chetan
Chetan le 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!

Catégories

En savoir plus sur Deep Learning Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by