Fix linter warnings

This commit is contained in:
Eren Gölge 2021-07-03 13:30:24 +02:00
parent 9e7824fe35
commit f382e4c700
4 changed files with 3 additions and 7 deletions

View File

@ -6,10 +6,6 @@ help:
target_dirs := tests TTS notebooks
test_all: ## run tests and don't stop on an error.
nosetests --with-cov -cov --cover-erase --cover-package TTS tests --nologcapture --with-id
./run_bash_tests.sh
test_all: ## run tests and don't stop on an error.
nosetests --with-cov -cov --cover-erase --cover-package TTS tests --nologcapture --with-id
./run_bash_tests.sh

View File

@ -114,7 +114,7 @@ class AlignTTS(BaseTTS):
)
if not self.config.model_args.num_chars:
chars, self.config, num_chars = self.get_characters(config)
_, self.config, num_chars = self.get_characters(config)
self.config.model_args.num_chars = num_chars
self.emb = nn.Embedding(self.config.model_args.num_chars, self.config.model_args.hidden_channels)

View File

@ -51,7 +51,7 @@ class GlowTTS(BaseTTS):
for key in config:
setattr(self, key, config[key])
chars, self.config, self.num_chars = self.get_characters(config)
_, self.config, self.num_chars = self.get_characters(config)
self.decoder_output_dim = config.out_channels
self.init_multispeaker(config)

View File

@ -98,7 +98,7 @@ class SpeedySpeech(BaseTTS):
self.config = config
if "characters" in config:
chars, self.config, self.num_chars = self.get_characters(config)
_, self.config, self.num_chars = self.get_characters(config)
self.length_scale = (
float(config.model_args.length_scale)