mirror of https://github.com/coqui-ai/TTS.git
Fix linter issues
This commit is contained in:
parent
fd287aa438
commit
e72c265cd4
|
@ -182,7 +182,7 @@ class TestAudio(unittest.TestCase):
|
|||
mel_denorm = ap.denormalize(mel_norm)
|
||||
assert abs(mel_reference - mel_denorm).max() < 1e-4
|
||||
|
||||
def test_compute_f0(self):
|
||||
def test_compute_f0(self): # pylint: disable=no-self-use
|
||||
ap = AudioProcessor(**conf)
|
||||
wav = ap.load_wav(WAV_FILE)
|
||||
pitch = ap.compute_f0(wav)
|
||||
|
|
|
@ -2,11 +2,7 @@ import unittest
|
|||
|
||||
import torch as T
|
||||
|
||||
from TTS.tts.layers.losses import L1LossMasked, SSIMLoss
|
||||
from TTS.tts.layers.tacotron.tacotron import CBHG, Decoder, Encoder, Prenet
|
||||
from TTS.tts.models.fast_pitch import FastPitch, FastPitchArgs, average_pitch
|
||||
from TTS.tts.utils.data import sequence_mask
|
||||
|
||||
# pylint: disable=unused-variable
|
||||
|
||||
|
||||
|
@ -38,7 +34,7 @@ def expand_encoder_outputs_test():
|
|||
x_mask = T.ones(2, 1, 57)
|
||||
y_mask = T.ones(2, 1, durations.sum(1).max())
|
||||
|
||||
expanded, attn = model.expand_encoder_outputs(inputs, durations, x_mask, y_mask)
|
||||
expanded, _ = model.expand_encoder_outputs(inputs, durations, x_mask, y_mask)
|
||||
|
||||
for b in range(durations.shape[0]):
|
||||
index = 0
|
||||
|
|
Loading…
Reference in New Issue