Skip to content

Commit

Permalink
it works with persistent true :P
Browse files Browse the repository at this point in the history
  • Loading branch information
andimarafioti committed Jan 29, 2025
1 parent 62bba40 commit 08cec38
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions vision/m4/training/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -1355,9 +1355,6 @@ def reset_state(self):
# possibly won't give you correct state rather the state it had when it was initialized. Are
# we confident that it will work this way?

# Lucile: It will work with persistent_workers=False but not with persistent_workers=True. The main
# reason why it will work is because this method is only used outside of the iteration on
# the dataloader (so the workers processes doesn't exist already)
self.dataset.reset_state()

def update_state(self, dataset_idx, dataset_state):
Expand Down

0 comments on commit 08cec38

Please sign in to comment.