Skip to content

Commit

Permalink
Cache speaker encoder model (#2284)
Browse files Browse the repository at this point in the history
  • Loading branch information
erogol authored Jan 23, 2023
1 parent 6e3f74f commit 497f22b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TTS/tts/utils/managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def init_encoder(self, model_path: str, config_path: str, use_cuda=False) -> Non
self.encoder_config = load_config(config_path)
self.encoder = setup_encoder_model(self.encoder_config)
self.encoder_criterion = self.encoder.load_checkpoint(
self.encoder_config, model_path, eval=True, use_cuda=use_cuda
self.encoder_config, model_path, eval=True, use_cuda=use_cuda, cache=True
)
self.encoder_ap = AudioProcessor(**self.encoder_config.audio)

Expand Down

0 comments on commit 497f22b

Please sign in to comment.