pedropro / TACO

🌮 Trash Annotations in Context Dataset Toolkit
http://tacodataset.org
MIT License
603 stars 201 forks source link

i find the annotation's id is not unique #46

Open shier1 opened 2 years ago

shier1 commented 2 years ago

{ "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 },

ken011528 commented 1 year ago

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

Erotemic commented 10 months ago

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'],
}