From 451f7da6980301820402b82d502b29976fd6ca31 Mon Sep 17 00:00:00 2001 From: erogol Date: Thu, 6 Feb 2020 15:16:29 +0100 Subject: [PATCH] pylint check --- server/synthesizer.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/server/synthesizer.py b/server/synthesizer.py index 63f2080a..75fd4e76 100644 --- a/server/synthesizer.py +++ b/server/synthesizer.py @@ -68,12 +68,15 @@ class Synthesizer(object): def load_wavernn(self, lib_path, model_file, model_config, use_cuda): # TODO: set a function in wavernn code base for model setup and call it here. - sys.path.append(lib_path) # set this if TTS is not installed globally + sys.path.append(lib_path) # set this if WaveRNN is not installed globally + #pylint: disable=import-outside-toplevel from WaveRNN.models.wavernn import Model print(" > Loading WaveRNN model ...") print(" | > model config: ", model_config) print(" | > model file: ", model_file) self.wavernn_config = load_config(model_config) + # This is the default architecture we use for our models. + # You might need to update it self.wavernn = Model( rnn_dims=512, fc_dims=512, @@ -98,7 +101,8 @@ class Synthesizer(object): self.wavernn.eval() def load_pwgan(self, lib_path, model_file, model_config, use_cuda): - sys.path.append(lib_path) # set this if TTS is not installed globally + sys.path.append(lib_path) # set this if ParallelWaveGAN is not installed globally + #pylint: disable=import-outside-toplevel from parallel_wavegan.models import ParallelWaveGANGenerator print(" > Loading PWGAN model ...") print(" | > model config: ", model_config)