r9y9 / deepvoice3_pytorch

PyTorch implementation of convolutional neural networks-based text-to-speech synthesis models
https://r9y9.github.io/deepvoice3_pytorch/
Other
1.97k stars 485 forks source link

synthesis error (memory corruption) #118

Closed ij00 closed 6 years ago

ij00 commented 6 years ago

After training, I tried to synthesis some sentences, but I got an error during synthesis. I traced the commands in synthesis.py and found the error occurred during "Greedy decoding".


Greedy decoding

 with torch.no_grad():
     mel_outputs, linear_outputs, alignments, done = model(
         sequence, text_positions=text_positions, speaker_ids=speaker_ids)

Would you help me to resolve this issue?

The error is

python3 synthesis.py checkpoints/checkpoint_step001550000.pth ./sentences.txt ./out_wav/ --preset=presets/deepvoice3_ljspeech.json Command line args: {'--checkpoint-postnet': None, '--checkpoint-seq2seq': None, '--file-name-suffix': '', '--help': False, '--hparams': '', '--max-decoder-steps': '500', '--output-html': False, '--preset': 'presets/deepvoice3_ljspeech.json', '--replace_pronunciation_prob': '0.0', '--speaker_id': None, '': 'checkpoints/checkpoint_step001550000.pth', '': './out_wav/', '': './sentences.txt'} Error in `python3': malloc(): memory corruption: 0x00007f93d324fa30 Aborted (core dumped)


ij00 commented 6 years ago

I solve this issue after reinstalling pytorch 0.4.0. Plus I refered #18 Thank you.