A model retrained using one's own data
Opened this issue · 0 comments
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) # (nb) 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