From 02df28c7d6059afa31d615a6f24eb27b7c017cff Mon Sep 17 00:00:00 2001 From: richardburleigh Date: Sat, 15 Feb 2020 14:47:50 +1100 Subject: [PATCH] Fix GL overriding PWGAN inference --- server/synthesizer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/synthesizer.py b/server/synthesizer.py index fcdc8787..347bef21 100644 --- a/server/synthesizer.py +++ b/server/synthesizer.py @@ -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()