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

segmentation PNG labels #1605

Open
MyVanitar opened this issue Apr 27, 2017 · 7 comments
Open

segmentation PNG labels #1605

MyVanitar opened this issue Apr 27, 2017 · 7 comments

Comments

@MyVanitar
Copy link

MyVanitar commented Apr 27, 2017

Hello,

I see in the new Digits that it is possible to use RGB PNG labels by defining RGB color values of each class in a text file. like this for example
0, 0, 0
128, 0, 0
and so on ...

if we decided to not to use this, and provide Labels like previous DIGITS versions (the version that used to make segmentation examples), then how the PNG labels should be?
Does in the new DIGITS version, a typical conversion performs on the PNG labels?

@Alqazzaz
Copy link

Hi,
I am new in Digits 5 and I want to run semantic segmentation example , if I select the option from text file in color map specification, how can I made color map file please?? I would like to get more clarification please.
Thanks.

@MyVanitar
Copy link
Author

MyVanitar commented Apr 29, 2017

if you move the cursor on ? symbol, it gives you a help. each line of color map corresponds a class and the first line is background which is black. then each line represents a color (class), like this:
0,0,0
128,0,0

@Alqazzaz
Copy link

Alqazzaz commented Apr 30, 2017 via email

@Alqazzaz
Copy link

Alqazzaz commented Apr 30, 2017 via email

@gheinrich
Copy link
Contributor

@VanitarNordic if you use images with indexed colors, also known as "palette" images, then you don't need to specify the color map through a text file. DIGITS will automatically extract the color map from your images. There have been no changes in DIGITS with regards to the support for palette images, so whatever worked before (you didn't specify any version by the way) should work on the latest version of DIGITS.

Regarding your response to @Alqazzaz I find it a little harsh. Please refrain from making personal comments like that.

@MyVanitar
Copy link
Author

MyVanitar commented May 1, 2017

@gheinrich

Thanks. Actually I asked this question because when I use a colormap PNGs, I get better results rather than using indexed PNGs!
You know when I train the model with indexed PNG files, the error is lower and Dice is higher but the model gives some bad segmentation on some test images! but when I train with colormap PNGs, the model behavior is predictable on all test images. The error is higher and Dice is lower but overall behavior is good. I never realized the reason of such weird behavior.

@Odd28
Copy link

Odd28 commented Feb 13, 2018

hi @gheinrich ,
I would like to convert my images from regular rgb to palette rgb. However, how do i do that? Thanks

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