- 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.
Problem in sematnic segmentation error: pixel Label IDs must be unique
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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:
Error using pixelLabelDatastore>parseInputs
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
0 comentarios
Respuestas (1)
Chetan
el 10 de Nov. de 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:
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!
0 comentarios
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!