forked from G-Wang/WaveRNN-Pytorch
-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Description
I have used this (https://github.com/Rayhane-mamah/Tacotron-2) implementation for pre-processing. And when I write command for training
python3 train.py --dataset Tacotron training_data
And getting this error
x = torch.cat([x.unsqueeze(-1), mels, a1[:,:,:-1]], dim=2)
RuntimeError: invalid argument 0: Sizes of tensors must match except in dimension 2. Got 1000 and 1280 in dimension 1 at /pytorch/aten/src/THC/generic/THCTensorMath.cu:83
Error seems to be straight forward that concatenate dimension size don't match, so I debug that and found following sizes of these three tensors:
print(x.unsqueeze(-1).size()) ----- > torch.Size([64, 1280, 1])
print(mels.size()) ------ > torch.Size([64, 1000, 80])
print(a1[:,:,:-1].size()) ------- > torch.Size([64, 1000, 31])
clearly see the dimension 1 of x and mels are not equal. @geneing So how I resolve it do I need to do some kind of reshaping or something else.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels