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

Op#3648 reduce memory consumption in track parser #554

Merged
merged 65 commits into from
Dec 3, 2024

Conversation

KueblerJelle
Copy link
Contributor

@KueblerJelle KueblerJelle commented Sep 18, 2024

OP#3648

KueblerJelle and others added 30 commits December 12, 2023 18:00
add lazy version of track dataset and detection parser
Detection parser can accept a stream of file contents to lazily load files only when they are needed
…ode duplication with python track parser

make some functionality reusable through classmethod
use bzip 2 json stream reader to sort files by start date
renamed BulkPythonDetectionParser back to PythonDetectionParser
extracted methods for creating PythonDetections and PythonTracks as static methods on module level
i have some old ottrk files for testing that could no longer be parsed
a new metadata format fixer fixes the old date string format by transforming it to timestamp format
TODO: review versions of fixer
clean up streaming parser and add more doc strings
found potential memory leak: delete det_list in StreamOttrkParser.parser()
OttrkVideoParser crashed in a manual test because the metadata format did not match -> apply format fixer
also reduced code duplication in cli.py and main_application.py

also fixed/adapted tests
@briemla briemla changed the title Op#3648 remove memory consumption in track parser Op#3648 reduce memory consumption in track parser Oct 22, 2024
Copy link
Contributor

@briemla briemla left a comment

Choose a reason for hiding this comment

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

Looks good. As this is a larger PR, I have few questions and comments.

ar0305 and others added 18 commits November 14, 2024 11:11
…t is defined by the EventListExporter implementation
…o not yet produce an output file

also tested export mode FLUSH, with same behavior as OVERWRITE
…tection parser

(similar to test_otvision_parser)
…which expects the file not to exist

previously the test case: test_export seems to have created that file/dir
briemla
briemla previously approved these changes Dec 2, 2024
@briemla briemla enabled auto-merge December 3, 2024 12:37
@briemla briemla merged commit 8ab1c26 into main Dec 3, 2024
6 checks passed
@briemla briemla deleted the OP#3648-create-streaming-track-parser branch December 3, 2024 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python Pull requests that update Python code
Development

Successfully merging this pull request may close these issues.

2 participants