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

How to Change Background of the Mask to be Black? #1659

Closed
sarmientoj24 opened this issue Jun 6, 2020 · 7 comments
Closed

How to Change Background of the Mask to be Black? #1659

sarmientoj24 opened this issue Jun 6, 2020 · 7 comments
Assignees
Labels
question Further information is requested

Comments

@sarmientoj24
Copy link

sarmientoj24 commented Jun 6, 2020

Expected Behaviour

I'd like to change the background mask to be black when exported.

Current Behaviour

Default mask is not black

@zhiltsov-max
Copy link
Contributor

You can call the background class background or remove any labels called background.

@zhiltsov-max zhiltsov-max self-assigned this Jun 6, 2020
@sarmientoj24
Copy link
Author

DO i have to create another class to be background? Say I have five classes, do I need to make it 6 then have the last one as black?

@zhiltsov-max
Copy link
Contributor

You can either create a background class and draw it, or don't create it and all the unannotated space will be black. Did you have any problems with obtaining black background?

@sarmientoj24
Copy link
Author

all unannotated space is brown

@zhiltsov-max
Copy link
Contributor

Can you update to the latest version and check?

@zhiltsov-max
Copy link
Contributor

You can also 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

@bsekachev bsekachev added the question Further information is requested label Jul 9, 2020
@bsekachev
Copy link
Member

@sarmientoj24 No answer for a month here. I will close the issue. Do not hesitate reopen it if you still need help

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

No branches or pull requests

3 participants