-
Notifications
You must be signed in to change notification settings - Fork 66
Description
RuntimeError: Caught RuntimeError in DataLoader worker process 2.
Original Traceback (most recent call last):
File "/wiz-llm-storage/anaconda3/envs/h2_nemo/lib/python3.10/site-packages/torch/utils/data/_utils/worker.py", line 308, in _worker_loop
data = fetcher.fetch(index)
File "/wiz-llm-storage/anaconda3/envs/h2_nemo/lib/python3.10/site-packages/torch/utils/data/_utils/fetch.py", line 54, in fetch
return self.collate_fn(data)
File "/wiz-llm-storage/anaconda3/envs/h2_nemo/lib/python3.10/site-packages/speechtokenizer/trainer/dataset.py", line 23, in collate_fn
output = pad_sequence(datum, batch_first=True)
File "/wiz-llm-storage/anaconda3/envs/h2_nemo/lib/python3.10/site-packages/torch/nn/utils/rnn.py", line 400, in pad_sequence
return torch._C._nn.pad_sequence(sequences, batch_first, padding_value)
RuntimeError: The size of tensor a (768) must match the size of tensor b (769) at non-singleton dimension 2
I followed all the steps and used the Hubert, which is the same version of the paper.