mirror of https://github.com/coqui-ai/TTS.git
Fix linter warnings
This commit is contained in:
parent
9e7824fe35
commit
f382e4c700
4
Makefile
4
Makefile
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue