-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
base: dl/stream-export
Are you sure you want to change the base?
Dl/stream export project #9159
Conversation
self._include_images = include_images | ||
self._grouped_by_frame = list(instance_data.group_by_frame(include_empty=True)) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
# Conflicts: # cvat/apps/dataset_manager/bindings.py
|
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
develop
branchLicense
Feel free to contact the maintainers if that's a concern.