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

Add track_id to CVAT for Images, correct importing tracks from CVAT for Images #7239

Open
jeethesh-pai opened this issue Dec 8, 2023 · 13 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@jeethesh-pai
Copy link

          Was this problem solved ? I am facing the same problem with CVAT 2.3 version. I would like to get the filename of the frame instead of frame numbers.

Inclusion of image name/path would be helpful because, we dont know how the images are stored in ascending or descending order in cvat folder. We just receive frame numbers from export, which is unclear and non-descriptive.

Thanks

Originally posted by @jeethesh-pai in #4502 (comment)

@bsekachev
Copy link
Member

Please, use CVAT for Images.
CVAT for Video is supposed to be used for .. videos.

@jeethesh-pai
Copy link
Author

jeethesh-pai commented Dec 8, 2023

But i need track id also. As far as I saw, CVAT for images do not support Track ID feature

@bsekachev
Copy link
Member

There were request to add track_id attribute to CVAT for Images format. Would it be a solution?

@jeethesh-pai
Copy link
Author

jeethesh-pai commented Dec 8, 2023

I think it might. I tried exporting annotations using COCO format, i got track_id in the attributes section of the annotation like this.
image

But if try uploading the same back to CVAT using COCO format. Each Box is considered as a different track. I am afraid the same might happen with CVAT for images too.

@bsekachev
Copy link
Member

For now you may try Datumaro format.

@bsekachev bsekachev changed the title CVAT for Videos 1.1 format do not support image path/name Add track_id to CVAT for Images, correct importing tracks from CVAT for Images Dec 8, 2023
@bsekachev bsekachev added the enhancement New feature or request label Dec 8, 2023
@jeethesh-pai
Copy link
Author

Can you otherwise tell me in what order are the frames numbered, if we export it using the CVAT for Videos format. Is it sorted based on filename? or can we give a sort function for it?

@jeethesh-pai
Copy link
Author

For now you may try Datumaro format.

Datumaro also has the same problem as importing COCO with track attributes. Each box is considered as a new track, even though there is a track attribute in annotation section.

@bsekachev
Copy link
Member

Just tried, it restored tracks on current develop branch.

@jeethesh-pai
Copy link
Author

Oh I forgot to mention I was using CVAT 2.3 version. Which format worked Datumaro or COCO? Also, does the current master branch have the same feature?

@jeethesh-pai
Copy link
Author

@bsekachev
Seems like we can change the sorting of images during task upload. There were options like Lexicological etc.
When I chose Natural, My images seems to be sorted as the way i wanted. If the sorting is correct then, the trackID frame numbers behave just like what I want.

image

@bsekachev
Copy link
Member

Oh I forgot to mention I was using CVAT 2.3 version. Which format worked Datumaro or COCO? Also, does the current master branch have the same feature?

Probably, yes. Anyway we will make new release these days.

@jeethesh-pai
Copy link
Author

That would be helpful. Thanks

@zhiltsov-max
Copy link
Contributor

Hi,

This wasn't supposed to work with this format, as there is the CVAT for video, designed to support tracks specifically. However, as we added this in other image-based formats, such as VOC as COCO, and supported track import in those cases, we can align behavior here as well, and include track_id attributes in CVAT for images, when tracks are exported.

@zhiltsov-max zhiltsov-max added the good first issue Good for newcomers label Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants