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

Dl/stream export project #9159

Open
wants to merge 5 commits into
base: dl/stream-export
Choose a base branch
from
Open

Conversation

Eldies
Copy link
Contributor

@Eldies Eldies commented Feb 28, 2025

Motivation and context

Streaming export for project extractor, and since CvatTaskOrJobDataExtractor and CVATProjectDataExtractor are almost the same, extracting common base class for them

How has this been tested?

Checklist

  • I submit my changes into the develop branch
  • I have created a changelog fragment
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • I have linked related issues (see GitHub docs)

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.

@Eldies Eldies requested a review from zhiltsov-max as a code owner February 28, 2025 13:04
self._include_images = include_images
self._grouped_by_frame = list(instance_data.group_by_frame(include_empty=True))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably, we can call this function in the __iter__ method for streaming cases, otherwise it will keep all the annotations in memory.

Copy link
Contributor Author

@Eldies Eldies Mar 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well, these annotations will be kept in memory during __iter__ anyway, and I did not find another simple way to get number of items for project.
Also, I am redesigning this PR a bit because I missed that on streaming export items are iterated more than once for multi-subset projects

@Eldies Eldies requested a review from nmanovic as a code owner March 4, 2025 20:58
Copy link

sonarqubecloud bot commented Mar 4, 2025

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

Successfully merging this pull request may close these issues.

2 participants