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

colab error #98

Open
mochacat2001 opened this issue May 13, 2021 · 2 comments
Open

colab error #98

mochacat2001 opened this issue May 13, 2021 · 2 comments

Comments

@mochacat2001
Copy link

mochacat2001 commented May 13, 2021

Train loss 55 0.477043 Grad Norm 0.824708 4.30s/it
here
Traceback (most recent call last):
File "train.py", line 286, in
args.warm_start, args.n_gpus, args.rank, args.group_name, hparams)
File "train.py", line 210, in train
y_pred = model(x)
File "/usr/local/lib/python3.7/dist-packages/torch/nn/modules/module.py", line 889, in _call_impl
result = self.forward(*input, **kwargs)
File "/content/mellotron/model.py", line 611, in forward
embedded_text = self.encoder(embedded_inputs, input_lengths)
File "/usr/local/lib/python3.7/dist-packages/torch/nn/modules/module.py", line 889, in _call_impl
result = self.forward(*input, **kwargs)
File "/content/mellotron/model.py", line 193, in forward
curr_x = F.dropout(F.relu(conv(curr_x)), drop_rate, self.training)
File "/usr/local/lib/python3.7/dist-packages/torch/nn/modules/module.py", line 889, in _call_impl
result = self.forward(*input, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/torch/nn/modules/container.py", line 119, in forward
input = module(input)
File "/usr/local/lib/python3.7/dist-packages/torch/nn/modules/module.py", line 889, in _call_impl
result = self.forward(*input, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/torch/nn/modules/batchnorm.py", line 140, in forward
self.weight, self.bias, bn_training, exponential_average_factor, self.eps)
File "/usr/local/lib/python3.7/dist-packages/torch/nn/functional.py", line 2147, in batch_norm
_verify_batch_size(input.size())
File "/usr/local/lib/python3.7/dist-packages/torch/nn/functional.py", line 2114, in _verify_batch_size
raise ValueError("Expected more than 1 value per channel when training, got input size {}".format(size))
ValueError: Expected more than 1 value per channel when training, got input size torch.Size([1, 512, 1])

@mochacat2001 mochacat2001 changed the title Yin error colab error May 13, 2021
@josebeo2016
Copy link

I got the same issue in the same train loss 55

@BlazJurisic
Copy link

anyone resolved this issue?

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

3 participants