mirror of https://github.com/coqui-ai/TTS.git
linter fixes
This commit is contained in:
parent
b11d1cb845
commit
b735076bb4
|
@ -76,7 +76,7 @@ class Tacotron2(TacotronAbstract):
|
|||
gst_style_tokens=10,
|
||||
gst_use_speaker_embedding=False,
|
||||
):
|
||||
super(Tacotron2, self).__init__(
|
||||
super().__init__(
|
||||
num_chars,
|
||||
num_speakers,
|
||||
r,
|
||||
|
|
|
@ -4,7 +4,7 @@ from torch import nn
|
|||
# pylint: disable=dangerous-default-value
|
||||
class ResStack(nn.Module):
|
||||
def __init__(self, kernel, channel, padding, dilations=[1, 3, 5]):
|
||||
super(ResStack, self).__init__()
|
||||
super().__init__()
|
||||
resstack = []
|
||||
for dilation in dilations:
|
||||
resstack += [
|
||||
|
|
|
@ -82,7 +82,7 @@ class MultiPeriodDiscriminator(torch.nn.Module):
|
|||
"""
|
||||
|
||||
def __init__(self):
|
||||
super(MultiPeriodDiscriminator, self).__init__()
|
||||
super().__init__()
|
||||
self.discriminators = nn.ModuleList(
|
||||
[
|
||||
DiscriminatorP(2),
|
||||
|
@ -124,7 +124,7 @@ class DiscriminatorS(torch.nn.Module):
|
|||
"""
|
||||
|
||||
def __init__(self, use_spectral_norm=False):
|
||||
super(DiscriminatorS, self).__init__()
|
||||
super().__init__()
|
||||
norm_f = nn.utils.spectral_norm if use_spectral_norm else nn.utils.weight_norm
|
||||
self.convs = nn.ModuleList(
|
||||
[
|
||||
|
@ -165,7 +165,7 @@ class MultiScaleDiscriminator(torch.nn.Module):
|
|||
"""
|
||||
|
||||
def __init__(self):
|
||||
super(MultiScaleDiscriminator, self).__init__()
|
||||
super().__init__()
|
||||
self.discriminators = nn.ModuleList(
|
||||
[
|
||||
DiscriminatorS(use_spectral_norm=True),
|
||||
|
|
20
run_tests.sh
20
run_tests.sh
|
@ -1,20 +0,0 @@
|
|||
set -e
|
||||
TF_CPP_MIN_LOG_LEVEL=3
|
||||
|
||||
# # tests
|
||||
nosetests tests -x &&\
|
||||
|
||||
# # runtime tests
|
||||
./tests/test_demo_server.sh && \
|
||||
./tests/test_resample.sh && \
|
||||
./tests/test_tacotron_train.sh && \
|
||||
./tests/test_glow-tts_train.sh && \
|
||||
./tests/test_vocoder_gan_train.sh && \
|
||||
./tests/test_vocoder_wavernn_train.sh && \
|
||||
./tests/test_vocoder_wavegrad_train.sh && \
|
||||
./tests/test_speedy_speech_train.sh && \
|
||||
./tests/test_aligntts_train.sh && \
|
||||
./tests/test_compute_statistics.sh && \
|
||||
|
||||
# linter check
|
||||
cardboardlinter --refspec main
|
Loading…
Reference in New Issue