TACO icon indicating copy to clipboard operation
TACO copied to clipboard

i find the annotation's id is not unique

Open shier1 opened this issue 2 years ago • 2 comments

{ "id": 4040, "image_id": 1281, "category_id": 59, "segmentation": [ [ 156.0, 1460.0, 142.0, 1372.0, 170.0, 1362.0, 184.0, 1452.0, 172.0, 1462.0, 156.0, 1460.0 ] ], "area": 2710.0, "bbox": [ 142.0, 1362.0, 42.0, 100.0 ], "iscrowd": 0 }, { "id": 4040, "image_id": 1300, "category_id": 58, "segmentation": [ [ 143, 1979, 187, 1980, 184, 2028, 158, 2028, 156, 2014, 145, 2009 ] ], "area": 1798.5, "bbox": [ 143.0, 1979.0, 44.0, 49.0 ], "iscrowd": 0 },

shier1 avatar Jul 16 '22 13:07 shier1

Thank You, also the "id": 309 is duplicated.

ken011528 avatar May 06 '23 01:05 ken011528

I've found this is still the case. Using kwcoco if I run:

kwcoco validate annotations.json

I get:

Exception: {
    'annotations.json': ['Duplicate annotations id = 309', 'Duplicate annotations id = 4040'],
}

Erotemic avatar Jan 24 '24 17:01 Erotemic