labelme icon indicating copy to clipboard operation
labelme copied to clipboard

Mark lines for training but get areas

Open 1215232494 opened this issue 2 years ago • 3 comments

Provide environment information

Python 3.7.13 labelme 5.0.0

What OS are you using?

Ubuntu 20.04.4

Describe the Bug

I use labelme to label linestrip SogouScreenshot_select-area_20221112102938 and use labelme2coco.py to get the coco data set of linestrip. SogouScreenshot_select-area_20221112103127

But when I use this coco data for training, the predicted result is red region instead of linestrip. SogouScreenshot_select-area_20221112122202

Why is that?

Expected Behavior

No response

To Reproduce

No response

1215232494 avatar Nov 12 '22 06:11 1215232494

looks like labelme2coco.py won't fully support shapeType=linestrip.

image

wkentaro avatar Nov 12 '22 06:11 wkentaro

Hi @wkentaro ,Thank you for your reply. Can you guide me how to modify the code?

1215232494 avatar Nov 12 '22 06:11 1215232494

Hi @wkentaro , I solved my problem. First, I turned json into a mask, and then I turned the mask into a coco using this project code (but there is a limitation, that is, labels cannot overlap). My level is limited, and I don't know the principle. But maybe this code can help you update your code functions.

1215232494 avatar Nov 15 '22 03:11 1215232494