Skip to content

Commit

Permalink
increase prefetch factor
Browse files Browse the repository at this point in the history
  • Loading branch information
mwalmsley committed Nov 4, 2023
1 parent 1b2e2f2 commit 685e0a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zoobot/pytorch/training/webdatamodule.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ def make_loader(self, urls, mode="train"):
batch_size=None, # already batched
shuffle=False, # already shuffled
num_workers=self.num_workers,
pin_memory=True
pin_memory=True,
prefetch_factor=10
)

# print('sampling')
Expand Down

0 comments on commit 685e0a8

Please sign in to comment.