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

High RAM consumption during custom export #6401

Open
2 tasks done
PMazarovich opened this issue Jun 29, 2023 · 2 comments
Open
2 tasks done

High RAM consumption during custom export #6401

PMazarovich opened this issue Jun 29, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@PMazarovich
Copy link
Contributor

My actions before raising this issue

Steps to Reproduce (for bugs)

  1. Create a task with annotations amount, approx. resulting in 380Mb in Cvat for Video
  2. Use task_data.group_by_frame() method
  3. Monitor cvat_worker_export docker container RAM usage

The thing is that this method - group_by_frame() reads all annotations for task in RAM

Expected Behaviour

Maybe it's better to create a method, that will return Frame for exact frame number, so user could iterate over each separate frame in the task, (so method will fetch data from db and create an individual Frame) without loading all Frames in ram

Current Behaviour

Here is a RAM consumption plot for 75 000 frames. CVAT for video annotation file size is 380Mb
78000

Context

I got this approach from here: https://opencv.github.io/cvat/docs/contributing/new-annotation-format/

Your Environment

CVAT 2.4.5

@bsekachev bsekachev added the bug Something isn't working label Jun 29, 2023
@bsekachev
Copy link
Member

Hi @PMazarovich

Thank you for the report. It is a known issue.

@zhiltsov-max
Copy link
Contributor

It was slightly improved in #6204, which was included in v2.4.7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants