Skip to content

Commit

Permalink
Merge pull request facebookresearch#8 from bryant1410/patch-2
Browse files Browse the repository at this point in the history
Fix `make_videodataset` when `num_workers=0`
  • Loading branch information
MidoAssran authored Feb 19, 2024
2 parents 5073cf0 + 37a20f8 commit dc8396a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/datasets/video_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def make_videodataset(
drop_last=drop_last,
pin_memory=pin_mem,
num_workers=num_workers,
persistent_workers=True)
persistent_workers=num_workers > 0)
logger.info('VideoDataset unsupervised data loader created')

return dataset, data_loader, dist_sampler
Expand Down

0 comments on commit dc8396a

Please sign in to comment.