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

Import COCO annotation show several extra class #1909

Closed
giorginagonzalez opened this issue Jul 16, 2020 · 9 comments
Closed

Import COCO annotation show several extra class #1909

giorginagonzalez opened this issue Jul 16, 2020 · 9 comments
Assignees
Milestone

Comments

@giorginagonzalez
Copy link

My actions before raising this issue

Expected Behaviour

I have a task with 9 classes as bbox, but If I dump annotation in a task with COCO format and import the same annotation, appears thousands of classes instead of 9. The only difference I see is in the original task, it says "Rectangle tracker" and the new-imported task says "Polygon shape". I should see the same result in both tasks.

Your Environment

  • Git hash commit (git log -1):
  • Docker version docker version (e.g. Docker 17.0.05):19.03.9
  • Are you using Docker Swarm or Kubernetes?
  • Operating System and version (e.g. Linux, Windows, MacOS): Ubuntu 18
  • Code example or link to GitHub repo or gist to reproduce problem:
  • Other diagnostic information / logs:
    Logs from `cvat` container

imported_thousand_classes
original_nine_classes

@zhiltsov-max
Copy link
Contributor

Hello, could you say which CVAT version are you using (git log -1)? Do I understand correctly that the original annotations were tracks and after uploading they became singular shapes (the same number per frame)?

@zhiltsov-max zhiltsov-max self-assigned this Jul 16, 2020
@nmanovic nmanovic added the bug Something isn't working label Jul 16, 2020
@nmanovic nmanovic added this to the 1.1.0-beta milestone Jul 16, 2020
@giorginagonzalez
Copy link
Author

Hi, yes, the original annotations were bbox as tracks and after uploading they became as singular shapes. And doesn´t look like the same number per frame .

And the cvat version is 19.03.9

@zhiltsov-max
Copy link
Contributor

COCO format does not support tracks of any kind, you should take a look at CVAT for video, MOT and Datumaro formats if you want to keep this information in the exported annotations.

@nmanovic
Copy link
Contributor

@giorginagonzalez , does it mean that if download annotations from CVAT and upload it again to CVAT, you get wrong annotations (some of them are missing)? You cannot keep tracks inside COCO but at the same time it should have correct bounding boxes (unpacked tracks).

@giorginagonzalez
Copy link
Author

Yes, if I download annotations from CVAT and upload again I get wrong annotations. It´s ok if tracker doesn´t upload but I should keep the same amount of label ID in both tasks. I mean, if I have the object "ship1", "ship2" and "ship3" in the frame 2, on the original task, I should see the same object from original, but I see "ship 15", "ship 16" and "ship 17" in the frame 2 on the task with the uploaded annotations.

@nmanovic
Copy link
Contributor

@giorginagonzalez , in the example above ships has only different IDs? Is it the only difference?

Could you please attach "both annotations" for us to analyze?

@giorginagonzalez
Copy link
Author

The differences I see are: 1. in the first task, it says "Rectangle tracker" and the new-imported task says "Polygon shape". 2. The label Id change in every frame in the new imported task.

I only have one annotation, I mean the annotation exported from the original task:
task_1_2-2020_07_13_19_38_04-coco 1.0 (1).zip

@nmanovic
Copy link
Contributor

@giorginagonzalez , it is the expected difference. You don't have tracks thus the new shape type is "polygon shape". IDs are generated on the client at the moment.

@zhiltsov-max zhiltsov-max removed the bug Something isn't working label Jul 20, 2020
@nmanovic nmanovic modified the milestones: 1.1.0-beta, 1.1.0-release Aug 2, 2020
@zhiltsov-max
Copy link
Contributor

zhiltsov-max commented Aug 13, 2020

Closing, as after #1782 and #1953 the export in COCO should keep tracks and boxes.

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