Merge pull request #353 from richardburleigh/patch-1

Fix GL overriding PWGAN inference
This commit is contained in:
Reuben Morais 2020-02-15 08:52:27 +01:00 committed by GitHub
commit a9632d56d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ class Synthesizer(object):
if self.use_cuda:
vocoder_input.cuda()
wav = self.pwgan.inference(vocoder_input, hop_size=self.ap.hop_length)
if self.wavernn:
elif self.wavernn:
vocoder_input = torch.FloatTensor(postnet_output.T).unsqueeze(0)
if self.use_cuda:
vocoder_input.cuda()