Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError: Input type (torch.FloatTensor) and weight type (torch.cuda.FloatTensor) should be the same #70

Open
xjsdn opened this issue Nov 4, 2022 · 0 comments

Comments

@xjsdn
Copy link

xjsdn commented Nov 4, 2022

2022-11-05 01:29:45,173 - INFO - Starting new training run.
Validation loop: 0%| | 0/710 [00:00<?, ?it/s]<datasets.dataloader.MelFromDisk object at 0x000002EAEF66B710>
tensor([[ -6.0881, -6.2532, -6.2991, ..., -11.5129, -11.5129, -11.5129],
[ -6.9093, -5.9843, -5.8405, ..., -11.5129, -11.5129, -11.5129],
[ -6.8329, -6.0982, -6.6101, ..., -11.5129, -11.5129, -11.5129],
...,
[ -8.3635, -8.1427, -8.2876, ..., -11.5129, -11.5129, -11.5129],
[ -8.0431, -7.8149, -8.1762, ..., -11.5129, -11.5129, -11.5129],
[ -7.9314, -8.1326, -8.2959, ..., -11.5129, -11.5129, -11.5129]])
Validation loop: 0%| | 0/710 [00:00<?, ?it/s]
2022-11-05 01:29:45,357 - INFO - Exiting due to exception: Input type (torch.FloatTensor) and weight type (torch.cuda.FloatTensor) should be the same
Traceback (most recent call last):
File "E:\ai_ai\melgan-master\utils\train.py", line 60, in train
validate(hp, args, model_g, model_d, valloader, writer, step)
File "E:\ai_ai\melgan-master\utils\validation.py", line 23, in validate
fake_audio = generator(mel)
File "E:\ai_ai\melgan-master\venv\lib\site-packages\torch\nn\modules\module.py", line 889, in _call_impl
result = self.forward(*input, **kwargs)
File "E:\ai_ai\melgan-master\model\generator.py", line 48, in forward
return self.generator(mel)
File "E:\ai_ai\melgan-master\venv\lib\site-packages\torch\nn\modules\module.py", line 889, in _call_impl
result = self.forward(*input, **kwargs)
File "E:\ai_ai\melgan-master\venv\lib\site-packages\torch\nn\modules\container.py", line 119, in forward
input = module(input)
File "E:\ai_ai\melgan-master\venv\lib\site-packages\torch\nn\modules\module.py", line 889, in _call_impl
result = self.forward(*input, **kwargs)
File "E:\ai_ai\melgan-master\venv\lib\site-packages\torch\nn\modules\conv.py", line 263, in forward
return self._conv_forward(input, self.weight, self.bias)
File "E:\ai_ai\melgan-master\venv\lib\site-packages\torch\nn\modules\conv.py", line 260, in _conv_forward
self.padding, self.dilation, self.groups)
RuntimeError: Input type (torch.FloatTensor) and weight type (torch.cuda.FloatTensor) should be the same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant