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
I found an interesting issue. The labels I annotated using Labelme appear normal in the PNG images generated by , 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.
Expected Behavior
I hope that PIL.Image.open(label_png) will display the same image as the one generated by labelme_export_json.
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, but when I open the label image using
![show1](https://github.com/labelmeai/labelme/assets/56707006/5de45669-4b37-43f1-a266-10084dd03b21)
<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.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