Skip to content

Commit

Permalink
Fix make_videodataset when num_workers=0
Browse files Browse the repository at this point in the history
  • Loading branch information
bryant1410 authored Feb 18, 2024
1 parent 2dfdfac commit 37a20f8
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 37a20f8

Please sign in to comment.