https://www.loom.com/share/c0cc6ecfdbf146c8ac74624fd87770f9

labelme - UI for annotating images:

GitHub - wkentaro/labelme: Image Polygonal Annotation with Python (polygon, rectangle, circle, line, point and image-level flag annotation).

This repo was successful for me to annotate and had clear instructions.

Screenshot of labelme application, making polygon shapes out of the image and then assigning them to a label

Screenshot of labelme application, making polygon shapes out of the image and then assigning them to a label

Setup is long, as is with most ML endeavours. I started off with labelling 5 images, took me about 10-15 minutes each. I wanted to create a test of just a few samples. Converting the labelled json files into the appropriate COCO format proved difficult.

https://www.loom.com/share/3a1878ceaa2b4048a98f84beb56d1e92

the labelme2coco script kept on failing and generating an empty COCO file. Pretty frustrating because the ‘example’ would run correctly. Through my human eye, it seemed like there was no glaring differences. However, because I don’t have expertise knowledge of the COCO dataset format, I could have been adding categories or IDs that were not working. Also, it could just be glitchy.

Here I’ll give you an example of an image the repo provided, plus the json file on the right. Below, I’ll give you my own annotated image and the corresponding json file. Do you see what I could be doing wrong?

FYI I have removed many labels for clarity. My image was triple the size of the example image (too complex).