-
Notifications
You must be signed in to change notification settings - Fork 984
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to feed colored input maps? #5
Comments
I've the same question here :) |
The input label, when loaded should contain integer values like 0, 1, 2, ..., 182. Each number means the label of that pixel. There are two ways of visualizing this. One way is treating the numbers as brightness of greyscale image. This visualization will lead to the bottom images you uploaded. But this visualization is hard to recognize because the difference among different labels is so subtle. On the other hand, you can entirely change the color of each label. For example, 0 can be painted red, 1 can be painted green, and so on. The top images you uploaded correspond this. It's customary that we use this kind of coloring of labels in papers. We have code that can "colorize" greyscale images into colorful ones. Please use It's harder to convert colored label images to greyscale images, because you would have to figure out what class number each color corresponds to. Usually if you got this image from a dataset, the dataset will come with greyscale version of the label map. Is this coco-stuff? |
Ok I see. Thank you very much Taesungp that a good starting solution. |
Thanks so much for your reply, @taesungp! I now understand how these grey-scale label maps work (and yep, this is coco-stuff). But here come a few questions:
|
I made a google colab notebook that works with testing and training coco-stuff, will add other datasets and how to train a custom dataset soon https://github.com/ak9250/SPADE-colab |
The pretrained models that are trained using instance map will require instance map to generate outputs. Lastly, in case of COCO-stuff, we created an instance map that combines the boundary of label map and original instance map. COCO dataset comes with instance map. However, the instance map does not contain boundary between different labels. For example, imagine an image of two people holding hands together on grass field under clear sky. The instance map will show the boundary between the two people, but it wouldn't show the boundary between grass field and sky. We augmented the original instance map by combining the boundaries of the instance map and label map. We plan to release this script soon.
|
@ak9250 thank you! |
Hey all, great work. I'm a little confused about the difference between an instance map and a label map. They both seem to be labeling pixels of an image. Is there a difference in purpose? |
Oh wait, in an instance map - each object gets it's own pixel value, in a label map, each TYPE of object gets its won pixel value. Is this correct? |
Hey guys, what an amazing work!
That's probably a dumb question, but how would one use images like these as inputs to the model?
Is there a pre-processing step that we need to take? I can only see that the model uses greyscale val_inst and val_label pictures, and I don't really get how they're obtained.
Many thanks in advance!
The text was updated successfully, but these errors were encountered: