Skip to content
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

consistency of label colors to multiple images #67

Closed
mwangaz opened this issue Feb 27, 2018 · 4 comments
Closed

consistency of label colors to multiple images #67

mwangaz opened this issue Feb 27, 2018 · 4 comments
Assignees

Comments

@mwangaz
Copy link

mwangaz commented Feb 27, 2018

I have a question about using labelme to create image labels for training the fully convolutional network (FCN). I find the color of the label depends on the order of creating the polygon: 2 objects will be labelled with red and green color. But what if I have another 2 different objects on an new image? The label color for them will still be red and green, which would affect the label images for training the segmentation model. How can I make sure the label color of the same object on different images is the same? Thanks.

@wkentaro
Copy link
Member

wkentaro commented Mar 4, 2018

I usually create a python script that converts all label images to have the consistent label value.
Maybe I can create a sample in a few weeks if I have time.

@wkentaro wkentaro self-assigned this Mar 4, 2018
@wkentaro wkentaro added this to the Closed PRs / Issues for questions milestone May 2, 2018
@nklein23
Copy link

Any news regarding this issue? I am also trying to label multiple images for segmentation but apparently the coloring pattern differentiates from image to image.

@wkentaro
Copy link
Member

wkentaro commented Oct 24, 2018

You can use labelme2voc.py: https://github.com/wkentaro/labelme/blob/master/examples/semantic_segmentation/labelme2voc.py
The output is the consistent colors of labels:

@shivarajkarki
Copy link

Thank you, it worked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants