colored segmentation to gray class value png
ahundt opened this issue · 2 comments
ahundt commented
You mentioned there is a more efficient function for converting the colored segmentation pngs to gray class pngs where the value is the class number. Which is the preferred function to do this?
warmspringwinds commented
We read the png file in the following way:
https://github.com/warmspringwinds/tf-image-segmentation/blob/master/tf_image_segmentation/utils/tf_records.py#L37
This give you the classes and not the rgb values
ahundt commented
Thanks!