Skip to content

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