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

How to keep track id? #21

Closed
abcilike opened this issue Aug 6, 2018 · 17 comments
Closed

How to keep track id? #21

abcilike opened this issue Aug 6, 2018 · 17 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@abcilike
Copy link

abcilike commented Aug 6, 2018

After annotation done --> upload annotation:
The ID of the target is messed up.

How to include the id information of the calibration target in the exported annotation file, and re-import the annotation file without showing confusion.

@nmanovic nmanovic self-assigned this Aug 6, 2018
@nmanovic nmanovic added enhancement New feature or request help wanted labels Aug 6, 2018
@nmanovic
Copy link
Contributor

nmanovic commented Aug 6, 2018

Hi @abcilike ,

At the moment it isn't possible but we will consider to resolve the problem in one of our next releases. Thank you for your question.

@abcilike
Copy link
Author

abcilike commented Aug 7, 2018

I found that the annotation file can save the target ID when importing the video, but not when importing the image sequence.

@nmanovic
Copy link
Contributor

nmanovic commented Aug 7, 2018

It doesn't work for videos in general case. The main problem here that each time when you press "save" button annotations are written to DB from scratch (not an increment). Need to track ID explicitly as an automatic attribute.

@SunskyF
Copy link

SunskyF commented Aug 25, 2018

Hello, @nmanovic
Could u give me an advice about how to dump annotation with track id?
Actually, I just want to dump the relative object id (it means that in some frames, the same object has same id), not the id in annotation.
Thanks a lot!

@nmanovic
Copy link
Contributor

@SunskyF ,

You should create "interpolation" task for that. It is created automatically if you upload a video file. If you load images the task will be considered as "annotation". At the moment the only way to dump "tracks" for "annotation" tasks is to change DB manually or change code (https://github.com/opencv/cvat/blob/master/cvat/apps/engine/annotation.py#L1015).

Does it answer your question?

@SunskyF
Copy link

SunskyF commented Aug 27, 2018

@nmanovic
Thanks!
It helps me a lot.

@nmanovic nmanovic modified the milestones: Release 0.3.0, Alpha 0.3.0 Sep 20, 2018
@nmanovic
Copy link
Contributor

#120 implements client_id for each annotation object.

@sjoycode
Copy link

sjoycode commented Feb 25, 2019

#120 implements client_id for each annotation object.

Is this feature already in develop branch? If I give image sequences as input the dumped annotation file still does not contain track ids. Instead, if I input the video file, the annotation file does contain the track ids. In both cases I made sure I was annotating in interpolation mode. I wonder if I am doing something wrong --- why track ids are not dumped for image sequences?

@nmanovic
Copy link
Contributor

@sjoycode , at the moment if you annotate images you annotation will be in "annotation" format: https://github.com/opencv/cvat/blob/develop/cvat/apps/documentation/xml_format.md#annotation

@sttobia
Copy link

sttobia commented Apr 24, 2019

@sjoycode , at the moment if you annotate images you annotation will be in "annotation" format: https://github.com/opencv/cvat/blob/develop/cvat/apps/documentation/xml_format.md#annotation

Are there still plans to integrate an object ID into the annotation format anytime soon? For tracking purposes this is crucial and a lot of labelling effort is lost if not being able to save the object id for later use. Especially when labelling frames of a video as single images using the interpolation mode.

@nmanovic
Copy link
Contributor

Hi @sttobia , first of all you can workaround the issue. Go to admin panel and change "mode" for a task from "annotation" to "interpolation". You will loose image names but you will be able to dump the task in "interpolation" format.

In our nearst plans is to improve export/import annotations in different data annotation formats. It will close the issue completely. You will be able to upload/download annotations in most popular formats like COCO, PascalVOC, etc... I realized that it is the most critical feature for many users.

@sttobia
Copy link

sttobia commented Apr 24, 2019

Hi @sttobia , first of all you can workaround the issue. Go to admin panel and change "mode" for a task from "annotation" to "interpolation". You will loose image names but you will be able to dump the task in "interpolation" format.

In our nearst plans is to improve export/import annotations in different data annotation formats. It will close the issue completely. You will be able to upload/download annotations in most popular formats like COCO, PascalVOC, etc... I realized that it is the most critical feature for many users.

Thanks for the quick reply! Does this also work for images and not videos? I am using single frames named using a sensor timestamp which is crucial for later reuse of the labels. Therefore the image name is somehow also critical for me.
Those plans sound very nice. Still I thought the xml file was a nice solution giving the conversion scripts in /utils you provided for the most popular formats.

@gLuColte
Copy link

Hi, am wondering is this issue fixed?
I am trying to upload coco annotation JSON with specified tracking ID within attributes (under interpolation mode), current CVAT seem to still reset the ID, turn the bbox into a normal annotation and loose the track. Is there a way around?
Thanks!

TOsmanov pushed a commit to TOsmanov/cvat that referenced this issue Aug 23, 2021
@blakete
Copy link

blakete commented Feb 5, 2022

Hi, am wondering is this issue fixed? I am trying to upload coco annotation JSON with specified tracking ID within attributes (under interpolation mode), current CVAT seem to still reset the ID, turn the bbox into a normal annotation and loose the track. Is there a way around? Thanks!

Hello, have you found an answer to this?

@blakete
Copy link

blakete commented Feb 5, 2022

Hi @sttobia , first of all you can workaround the issue. Go to admin panel and change "mode" for a task from "annotation" to "interpolation". You will loose image names but you will be able to dump the task in "interpolation" format.

In our nearst plans is to improve export/import annotations in different data annotation formats. It will close the issue completely. You will be able to upload/download annotations in most popular formats like COCO, PascalVOC, etc... I realized that it is the most critical feature for many users.

Hi, has this label upload improvement been implemented? I am still experiencing the issue of tracking labels turning back to regular labels upon upload of labels in COCO 1.0 format. This feature is a critical requirement for my project. I look forward to hearing back from you. Thank you.

@castrovictor
Copy link

castrovictor commented Feb 1, 2023

Hi @sttobia , first of all you can workaround the issue. Go to admin panel and change "mode" for a task from "annotation" to "interpolation". You will loose image names but you will be able to dump the task in "interpolation" format.
In our nearst plans is to improve export/import annotations in different data annotation formats. It will close the issue completely. You will be able to upload/download annotations in most popular formats like COCO, PascalVOC, etc... I realized that it is the most critical feature for many users.

Hi, has this label upload improvement been implemented? I am still experiencing the issue of tracking labels turning back to regular labels upon upload of labels in COCO 1.0 format. This feature is a critical requirement for my project. I look forward to hearing back from you. Thank you.

I'm in the same situation. I have been able to dump ids for objects manually drawn when creating task from video, but I am not able to import annotations with the ids, it rewrites them. It's not a problem at all the change of ids itself, the biggest problem is that it uses new ones for each frame. So it completely ignores the tracking part. I have tried with both MOT and PascalVOC format

@castrovictor
Copy link

castrovictor commented Feb 1, 2023

I don't mind trying to modify the function in charge of it and doing a pull request if I make it. But I do not longer see the file cvat/apps/engine/annotation.py
Could anyone indicate me where should I look at? Unfortunately I don't have time to read the whole code of the project. Would you mind giving me a hint? @nmanovic

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

No branches or pull requests

8 participants