-
Notifications
You must be signed in to change notification settings - Fork 92
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
palette conversion not needed #14
Comments
Thanks, I did not know about this. pngs for the win! |
The convert_masks.py script produced a set of completely black PNGs for me. Is it still required? |
if it is black that most likely means there isn't a palette and you are seeing the raw values as grayscale |
I downloaded the Augmented Pascal VOC dataset and ran the convert_masks.py script. Doesn't that define the palette, and mean that I should see colored mask images? |
IIRC black images are ok, because the values are within the 0-21 range. Try opening them in numpy or a photo editor to make sure. |
Yes indeed - thanks. |
https://github.com/nicolov/segmentation_keras/blob/master/convert_masks.py isn't necessary.
Just use Pillow and you can load the classes separately from the color palette, which means it will already be in the format you want!
from https://github.com/aurora95/Keras-FCN/blob/master/utils/SegDataGenerator.py#L203
cool right?
The text was updated successfully, but these errors were encountered: