Pixel label image has scalar pixel label IDs instead of RGB-triplet pixel label IDs

조회 수: 6 (최근 30일)
Hi, I am trying to follow this semantic segmentation using deep learning tutorial with my own dataset.
I am running into this error when I am trying to train the network.
I am not sure if this error has to do with how we are labeling the images. I am labeling all my images with imageLabeler() but I noticed we get all black images in the PixelLabelData folder after we export the label data. In the camvid dataset example, the label data had the color overlay of each different label. Here is one of the pictures I labeled and the black image I get versus the camvid one with color overlay I am talking about.
How can fix this error so I can continue training the network? Any help will be greatly appreciated. Thanks in advance!
  댓글 수: 1
Nipuna
Nipuna 2022년 8월 1일
Hi did you get a reasonable answer for this problem? I'm trying the original example and faced the same issue.

댓글을 달려면 로그인하십시오.

답변 (1개)

Mahesh Taparia
Mahesh Taparia 2020년 11월 18일
Hi
The labeled images have label ID (for Eg: 1,2,3 etc. upto number of classes). So it look black as label ID value is small. To visualize the labels on input image, you can use labeloverlay function. So your 1st image is label image, if you read it in MATLAB, you will get the respective pixel id of each class.These images are used as label images while doing training. Hope it will help!

Community Treasure Hunt

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

Start Hunting!

Translated by