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

coco format inconsistencies #56

Open
Eldies opened this issue Aug 16, 2024 · 0 comments
Open

coco format inconsistencies #56

Eldies opened this issue Aug 16, 2024 · 0 comments

Comments

@Eldies
Copy link

Eldies commented Aug 16, 2024

Coco does not support several annotations with the same id: only one of the annotations is accessible with pycocotools:
https://github.com/cocodataset/cocoapi/blob/master/PythonAPI/pycocotools/coco.py#L98

Datumaro can import several annotations with the same id (which is inconsistent with pycocotools behaviour).

Annotations with the same id are imported as belonging to the same group, and on export they are merged into one annotation which covers all the source annotations, i.e. importing and then exporting changes annotations, which is unexpected behaviour

datum convert -if "coco" -f "coco" merges annotations with the same id.

Here is a dataset, which can be used to illustrate the problem
Archive.zip

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

1 participant