diff --git a/TTS/tts/utils/fairseq.py b/TTS/tts/utils/fairseq.py index 6744c765..99c081ae 100644 --- a/TTS/tts/utils/fairseq.py +++ b/TTS/tts/utils/fairseq.py @@ -45,4 +45,4 @@ def rehash_fairseq_vits_checkpoint(checkpoint_file): new_chk[k.replace("dp.", "duration_predictor.")] = v else: new_chk[k] = v - return new_chk \ No newline at end of file + return new_chk diff --git a/TTS/tts/utils/text/characters.py b/TTS/tts/utils/text/characters.py index 2477aefc..592b048c 100644 --- a/TTS/tts/utils/text/characters.py +++ b/TTS/tts/utils/text/characters.py @@ -79,8 +79,6 @@ class BaseVocabulary: idx: char for idx, char in enumerate(self._vocab) # pylint: disable=unnecessary-comprehension } - - @staticmethod def init_from_config(config, **kwargs): """Initialize from the given config.""" diff --git a/TTS/utils/synthesizer.py b/TTS/utils/synthesizer.py index 222f76a3..a9dc5952 100644 --- a/TTS/utils/synthesizer.py +++ b/TTS/utils/synthesizer.py @@ -146,7 +146,7 @@ class Synthesizer(object): """ self.tts_config = VitsConfig() self.tts_model = Vits.init_from_config(self.tts_config) - self.tts_model.load_fairseq_checkpoint(self.tts_config , checkpoint_dir=model_dir, eval=True) + self.tts_model.load_fairseq_checkpoint(self.tts_config, checkpoint_dir=model_dir, eval=True) self.tts_config = self.tts_model.config if use_cuda: self.tts_model.cuda()