warmspringwinds/tf-image-segmentation

colored segmentation to gray class value png

ahundt opened this issue · 2 comments

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?

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

Thanks!