Pacify pylint even more

This commit is contained in:
Markus Toman 2020-02-07 12:58:58 +01:00 committed by GitHub
parent 3f54c39b0a
commit 8f37ea9b84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -1,3 +1,4 @@
# pylint: disable=redefined-outer-name, unused-argument
import os
import time
import argparse
@ -30,9 +31,9 @@ def tts(model,
if C.model == "Tacotron" and use_vocoder_model:
postnet_output = ap.out_linear_to_mel(postnet_output.T).T
# correct if there is a scale difference b/w two models
postnet_output = ap._denormalize(postnet_output) # pylint: disable=W021
postnet_output = ap._denormalize(postnet_output) # pylint: disable=protected-access
if use_vocoder_model:
postnet_output = ap_vocoder._normalize(postnet_output) # pylint: disable=W021
postnet_output = ap_vocoder._normalize(postnet_output) # pylint: disable=protected-access
vocoder_input = torch.FloatTensor(postnet_output.T).unsqueeze(0)
waveform = vocoder_model.generate(
vocoder_input.cuda() if use_cuda else vocoder_input,