- 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
조회 수: 1 (최근 30일)
이전 댓글 표시
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
답변 (1개)
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:
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
참고 항목
카테고리
Help Center 및 File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!