Trying to train vocoder on RTX 3090 with torch 1.8.0 nightly (because 1.7.0 doesn’t support 3090) and get this error. Does anyone know where can be the error?
TRAINING (2020-11-30 16:55:21)
! Run is removed from /home/abai/Downloads/kazakh_synthes/Results/multiband-melgan-November-30-2020_04+55PM-f6c96b0
Traceback (most recent call last):
File “bin/train_vocoder.py”, line 647, in
main(args)
File “bin/train_vocoder.py”, line 551, in main
epoch)
File “bin/train_vocoder.py”, line 149, in train
feats_real, y_hat_sub, y_G_sub)
File “/home/abai/MozillaTTS/lib/python3.7/site-packages/torch/nn/modules/module.py”, line 744, in _call_impl
result = self.forward(*input, **kwargs)
File “/home/abai/TTS/TTS/vocoder/layers/losses.py”, line 234, in forward
stft_loss_mg, stft_loss_sc = self.stft_loss(y_hat.squeeze(1), y.squeeze(1))
File “/home/abai/MozillaTTS/lib/python3.7/site-packages/torch/nn/modules/module.py”, line 744, in _call_impl
result = self.forward(*input, **kwargs)
File “/home/abai/TTS/TTS/vocoder/layers/losses.py”, line 71, in forward
lm, lsc = f(y_hat, y)
File “/home/abai/MozillaTTS/lib/python3.7/site-packages/torch/nn/modules/module.py”, line 744, in _call_impl
result = self.forward(*input, **kwargs)
File “/home/abai/TTS/TTS/vocoder/layers/losses.py”, line 47, in forward
y_hat_M = self.stft(y_hat)
File “/home/abai/TTS/TTS/vocoder/layers/losses.py”, line 26, in call
return_complex=True)
File “/home/abai/MozillaTTS/lib/python3.7/site-packages/torch/functional.py”, line 516, in stft
normalized, onesided, return_complex)
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!