Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shier1 opened this issue Jul 16, 2022 · 2 comments
Open

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

shier1 opened this issue Jul 16, 2022 · 2 comments

Comments

@shier1
Copy link

shier1 commented Jul 16, 2022

{
"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
Copy link

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

@Erotemic
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants