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
how to extract Encoded PNG for each label for building TF Record #71
Comments
I think you can use Lines 69 to 75 in 58693e6
Then convert the numpy array to a serialized PNG image. |
Thanks. I tried running that and I just end up with a blank png. A function that exports or shows how to get individual png files for each mask would be ideal. I will keep working on this. |
Hey so I ended up being able to plot and see the Mask by modifying the function a little bit.
|
Ok i ended up with this to get the serialized PNG
output will be something along the lines of |
I have trained several datasets, but am new to using mask
RCNN. I have already built a script to do the following with the output JSON file from labelme
my question, is how do I get a serialized PNG image for each label?
example
image/object/mask = ["\x89PNG\r\n\x1A\n\x00\x00\x00\rIHDR\...", ...]
The text was updated successfully, but these errors were encountered: