-
Python version (
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
I have noticed that when the number of workers of the dataloader is 0, this issue does not arise |
Beta Was this translation helpful? Give feedback.
-
@gonzaq94 if two sites are downloading and saving dataset into the same location at the same time, it could cause racing issues. If you want to avoid that, you can download the dataset BEFORE you run any jobs. Have you tried running with number of workers >0 again? |
Beta Was this translation helpful? Give feedback.
-
The datasets are already downloaded to that location. All the dataloader does is reading in that location (nothing is written or saved in that location). |
Beta Was this translation helpful? Give feedback.
-
@gonzaq94 I look it up, looks like this is a PyTorch issue: pytorch/pytorch#28820 https://pytorch.org/docs/stable/data.html#platform-specific-behaviors pytorch/pytorch#12831 https://stackoverflow.com/questions/77174223/simplest-dataloader-fails-when-num-workers0 |
Beta Was this translation helpful? Give feedback.
I have noticed that when the number of workers of the dataloader is 0, this issue does not arise