linter updates

This commit is contained in:
erogol
2020-05-18 18:46:13 +02:00
parent 496ff68dec
commit f75b0a6439
17 changed files with 177 additions and 163 deletions
+2 -2
View File
@@ -171,12 +171,12 @@ class Synthesizer(object):
speaker_id = id_to_torch(speaker_id)
if speaker_id is not None and self.use_cuda:
speaker_id = speaker_id.cuda()
for sen in sens:
# preprocess the given text
inputs = text_to_seqvec(sen, self.tts_config, self.use_cuda)
# synthesize voice
decoder_output, postnet_output, alignments, _ = run_model(
decoder_output, postnet_output, alignments, _ = run_model_torch(
self.tts_model, inputs, self.tts_config, False, speaker_id, None)
# convert outputs to numpy
postnet_output, decoder_output, _ = parse_outputs(