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

A model retrained using one's own data #237

Open
912602337 opened this issue Oct 12, 2024 · 0 comments
Open

A model retrained using one's own data #237

912602337 opened this issue Oct 12, 2024 · 0 comments

Comments

@912602337
Copy link

Inference error:
Traceback (most recent call last):
File "/home/ubuntu/cmm_task/FastSpeech2-master/synthesize.py", line 217, in
synthesize(model, args.restore_step, configs, vocoder, batchs, control_values, args.speaker_id)
File "/home/ubuntu/cmm_task/FastSpeech2-master/synthesize.py", line 95, in synthesize
output = model(
File "/home/ubuntu/miniconda3/envs/gptsovits/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1532, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/home/ubuntu/miniconda3/envs/gptsovits/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1541, in _call_impl
return forward_call(*args, **kwargs)
File "/home/ubuntu/cmm_task/FastSpeech2-master/model/fastspeech2.py", line 94, in forward
output, mel_masks = self.decoder(output, mel_masks)
File "/home/ubuntu/miniconda3/envs/gptsovits/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1532, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/home/ubuntu/miniconda3/envs/gptsovits/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1541, in _call_impl
return forward_call(*args, **kwargs)
File "/home/ubuntu/cmm_task/FastSpeech2-master/transformer/Models.py", line 169, in forward
dec_output, dec_slf_attn = dec_layer(
File "/home/ubuntu/miniconda3/envs/gptsovits/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1532, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/home/ubuntu/miniconda3/envs/gptsovits/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1541, in _call_impl
return forward_call(*args, **kwargs)
File "/home/ubuntu/cmm_task/FastSpeech2-master/transformer/Layers.py", line 22, in forward
enc_output, enc_slf_attn = self.slf_attn(
File "/home/ubuntu/miniconda3/envs/gptsovits/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1532, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/home/ubuntu/miniconda3/envs/gptsovits/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1541, in _call_impl
return forward_call(args, **kwargs)
File "/home/ubuntu/cmm_task/FastSpeech2-master/transformer/SubLayers.py", line 42, in forward
q = q.permute(2, 0, 1, 3).contiguous().view(-1, len_q, d_k) # (n
b) x lq x dk
RuntimeError: cannot reshape tensor of 0 elements into shape [-1, 0, 128] because the unspecified dimension size -1 can be any value and is ambiguous

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