Skip to content

Add Method to unload sequence data from memory #76

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

Merged
merged 1 commit into from
Oct 20, 2020
Merged

Add Method to unload sequence data from memory #76

merged 1 commit into from
Oct 20, 2020

Conversation

ltriess
Copy link
Contributor

@ltriess ltriess commented Oct 3, 2020

Fixes #72
It is now possible to iterate over all sequences and do operations on them without running into a sigkill, if unload method is called like in the example below.

from pandaset import DataSet
pandaset = DataSet('...')
for sequence in pandaset.sequences():
    seq = pandaset[sequence]
    seq.load()
    # do operations on sequence here...
    # when finished, unload the sequence from memory
    pandaset.unload(sequence)

@xpchuan-95 xpchuan-95 merged commit 7147e87 into scaleapi:master Oct 20, 2020
@dkoguciuk dkoguciuk mentioned this pull request Nov 23, 2020
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.

Bad memory management - sequences stored in dataset object
2 participants