Support Circle shape in labelme2coco.py JSON generation #1134
Replies: 4 comments
-
You can achieve this by adding following logic to /examples/instance_segmentation/labelme2coco.py:
|
Beta Was this translation helpful? Give feedback.
-
@stephanj thank you for this good addition!!! I would recommend to add one additional line of code at the end of the circle procedure, as this line will flatten the array in such a way that it corresponds to the visualization method of the cocoapi. Again, thank you for this addition.
|
Beta Was this translation helpful? Give feedback.
-
...
points = circle_polygon
points = np.asarray(points).flatten().tolist()
... |
Beta Was this translation helpful? Give feedback.
-
@stephanj Why are the segmentations points the same after use circle transformation? Can You upload the full script?this is my datasets |
Beta Was this translation helpful? Give feedback.
-
The current labelme2coco.py doesn't support the circle shape.
Beta Was this translation helpful? Give feedback.
All reactions