antoine77340 / MIL-NCE_HowTo100M

PyTorch GPU distributed training code for MIL-NCE HowTo100M
Apache License 2.0
214 stars 31 forks source link

Error with dataloader #11

Open thematrixduo opened 3 years ago

thematrixduo commented 3 years ago

I got this error message while running dataloader with 40 workers to load Howto100M dataset. Just wondering if you ever encountered this. if not don't worry, it might be some problem with my setup.

-- Process 0 terminated with the following error: Traceback (most recent call last): File "/opt/conda/lib/python3.8/site-packages/torch/multiprocessing/spawn.py", line 19, in _wrap fn(i, *args) File "/workspace/pytorch_code/mmssl_graph/train_MILNCE.py", line 207, in main_worker train(train_loader, model, criterion, optimizer, scheduler, epoch, train_dataset, writer, args) File "/workspace/pytorch_code/mmssl_graph/train_MILNCE.py", line 225, in train for i_batch, sample_batch in enumerate(train_loader): File "/opt/conda/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 435, in next data = self._next_data() File "/opt/conda/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 1065, in _next_data return self._process_data(data) File "/opt/conda/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 1111, in _process_data data.reraise() File "/opt/conda/lib/python3.8/site-packages/torch/_utils.py", line 428, in reraise raise self.exc_type(msg) TypeError: init() missing 2 required positional arguments: 'stdout' and 'stderr'

Environment

antoine77340 commented 3 years ago

Hi, This might be due to a decoding error in ffmpeg. Most people encounter this problem because they either have the wrong video paths or corrupted videos.

thematrixduo commented 3 years ago

Thanks. I identified this video file which causes the error: HowTo100M/qMqUiprqXwU.mp4 Not sure if it is corrupted during downloading though. You might want to give it a check. --------EDIT-------- I tried to download this video file again. But it still causes the same error. I would suggest you to give it a check.