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

Adjuct color mapping of the generated mask images #842

Closed
bessszilard opened this issue Nov 15, 2019 · 4 comments · Fixed by #2014
Closed

Adjuct color mapping of the generated mask images #842

bessszilard opened this issue Nov 15, 2019 · 4 comments · Fixed by #2014
Assignees
Labels
enhancement New feature or request

Comments

@bessszilard
Copy link

Is it possible to create a setting, where we can adjust the color mapping for the generated images?
This would be useful, for the image-segmentation-keras models.

Regards,
Szilard Bessenyei

@nmanovic
Copy link
Contributor

@bessszilard , for now it is not possible. There are several ways to solve the issue. The most obvious is to use opencv to convert images as you like. I will keep the issue open till we have a builtin solution.

@nmanovic nmanovic added the enhancement New feature or request label Nov 15, 2019
@nmanovic nmanovic added this to the Backlog milestone Nov 15, 2019
@bessszilard
Copy link
Author

@nmanovic Okay, thanks for your response!

@nmanovic
Copy link
Contributor

@bessszilard , also you can contribute one more format. Look at https://github.com/opencv/cvat/blob/develop/cvat/apps/annotation/mask.py

You probably just need to change def genearte_pascal_colormap(size=256) and contribute it.

@zhiltsov-max
Copy link
Contributor

While not supported in the UI, you can change colors on existing png masks using Datumaro (example #1670):

  1. datum project import --format voc --input-path <path/to/voc/dataset>

  2. Create a color map file with desired colors:

# label : color_rgb : parts : actions
background:0,0,0::
cat:0,0,255::
dog:255,0,0::
  1. datum project export --format voc_segmentation -- --label-map mycolormap.txt

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

Successfully merging a pull request may close this issue.

3 participants