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

colored segmentation to gray class value png #18

Closed
ahundt opened this issue Apr 19, 2017 · 2 comments
Closed

colored segmentation to gray class value png #18

ahundt opened this issue Apr 19, 2017 · 2 comments

Comments

@ahundt
Copy link

ahundt commented Apr 19, 2017

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
Copy link
Owner

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
Copy link
Author

ahundt commented Apr 25, 2017

Thanks!

@ahundt ahundt closed this as completed Apr 25, 2017
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

2 participants