Closed dongho-Han closed 6 months ago
Thanks for your attention! (1) This repository is used for semantic segmentation. So the labels here are the semantic maps for the images. Take a label (semantic segmentation map) from NYUDepthV2 as example(shown in the following image), the objects that belong to different category are labeled with different values, e.g., 1 for table, 2 for chair ....
So if you want to make label, we recommend you to use the labelme. Set the category number and get the corresponding mask for different categories. And the background (not belong to any categories you set) is set to 0.
(2) (i) For visualization, different categories are colored in different colors. For example, the first item (RGB value) in palette is used to color the first category of the dataset. (ii) You can allocate arbitrary color for your categories. The number of different colors is equal to the categories number for your dataset. Also, you can use the palette from other datasets. We provide a palette in below, you can use part of them for your dataset.
I hope this can help you. If you have any further questions, feel free to communicate with us.
Thanks for help! I think your answer gives me much information. I'll try and let you know if I have any problem :)
Hello. Thanks for sharing your nice work! I'm trying to run my own dataset with your model, but got stuck by some points. Could you give any suggestions?
(1) I'm trying to run DFormer on my own captured rgb videos. Therefore, first, I made depth images using Depth Estimation model. However, as your model also requires
labels
for metric evaluation, I don't have any ideas for that. Could you give any easy way to make label image?(2) In this code, https://github.com/VCIP-RGBD/DFormer/blob/2aa25e362807b1027bddb3046a96cf1c8ec89cbf/utils/val_mm.py#L105 you used
palette
for saving the image. Would you give any descriptions for (i) what thepalette
is(for which purpose), (ii) how can I make thepalette
for my own dataset?Thanks!