NVIDIA / DIGITS

Deep Learning GPU Training System
https://developer.nvidia.com/digits
BSD 3-Clause "New" or "Revised" License
4.12k stars 1.38k forks source link

segmentation PNG labels #1605

Open MyVanitar opened 7 years ago

MyVanitar commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

Thank you for your reply. could you send me with color map please?? Regards. salma

On 29 April 2017 at 06:38, Hesam Moshiri notifications@github.com wrote:

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. then each line represents a color (class), like this: 0,0,0 128,0,0

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/NVIDIA/DIGITS/issues/1605#issuecomment-298169542, or mute the thread https://github.com/notifications/unsubscribe-auth/AQK2vQe52s7fUZED__9U1yfFbQemmqN5ks5r0z1JgaJpZM4NKzwx .

Alqazzaz commented 7 years ago

0: background

1: aeroplane

2: bicycle

3: bird

4: boat

5: bottle

6: bus

7: car

8: cat

9: chair

10: cow

11: diningtable

12: dog

13: horse

14: motorbike

15: person

16: pottedplant

17: sheep

18: sofa

19: train

20: tvmonitor

255: undefined/don't care

Could you help me to get the color map for each class please??

I appreciate any help. Thanks.

On 30 April 2017 at 06:48, Salma Ali zhraaali18@gmail.com wrote:

Thank you for your reply. could you send me with color map please?? Regards. salma

On 29 April 2017 at 06:38, Hesam Moshiri notifications@github.com wrote:

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. then each line represents a color (class), like this: 0,0,0 128,0,0

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/NVIDIA/DIGITS/issues/1605#issuecomment-298169542, or mute the thread https://github.com/notifications/unsubscribe-auth/AQK2vQe52s7fUZED__9U1yfFbQemmqN5ks5r0z1JgaJpZM4NKzwx .

gheinrich commented 7 years ago

@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 commented 7 years ago

@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 commented 6 years ago

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