fixing "No space allowed before..." compile errors

fixing "No space allowed before..." compile errors
This commit is contained in:
fatihkiralioglu 2020-04-27 09:53:52 +03:00 committed by GitHub
parent 70a8210283
commit cc11be06d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -185,8 +185,8 @@ class Synthesizer(object):
wav = self.pwgan.inference(vocoder_input, hop_size=self.ap.hop_length) wav = self.pwgan.inference(vocoder_input, hop_size=self.ap.hop_length)
elif self.wavernn: elif self.wavernn:
vocoder_input = None vocoder_input = None
if self.tts_config.model == "Tacotron" : if self.tts_config.model == "Tacotron":
vocoder_input = torch.FloatTensor(self.ap.out_linear_to_mel(linear_spec = postnet_output.T).T).T.unsqueeze(0) vocoder_input = torch.FloatTensor(self.ap.out_linear_to_mel(linear_spec=postnet_output.T).T).T.unsqueeze(0)
else: else:
vocoder_input = torch.FloatTensor(postnet_output.T).unsqueeze(0) vocoder_input = torch.FloatTensor(postnet_output.T).unsqueeze(0)