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

There seems to be an issue with certain objects in the label images generated by <labelme_export_json> when opened with PIL.Image.open, where the labels and pixels don't match up correctly. #1436

Open
CalvenYi opened this issue May 8, 2024 · 0 comments
Labels
bug issue

Comments

@CalvenYi
Copy link

CalvenYi commented May 8, 2024

Provide environment information

Python 3.8.19
labelme 5.4.1
Pillow 10.1.0

What OS are you using?

Ubuntu 20.04.4

Describe the Bug

I found an interesting issue. The labels I annotated using Labelme appear normal in the PNG images generated by <labelme_export_json>, but when I open the label image using <lbl = np.asarray(PIL.Image.open(label_png))>, I notice that some pixel labels are incorrect. For example, the edges of some polygons or the centers of small objects have pixel label errors.
label
output
show2
show1

Expected Behavior

I hope that PIL.Image.open(label_png) will display the same image as the one generated by labelme_export_json.

To Reproduce

No response

@CalvenYi CalvenYi added the bug issue label May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug issue
Projects
None yet
Development

No branches or pull requests

1 participant