Skip to content

Commit

Permalink
fix(freevc): use the specified device for pretrained speaker encoder (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianRomberg committed Jun 16, 2024
1 parent 063e9e9 commit 3a20f47
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion TTS/vc/models/freevc.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,8 @@ def load_pretrained_speaker_encoder(self):
"""Load pretrained speaker encoder model as mentioned in the paper."""
logger.info("Loading pretrained speaker encoder model ...")
self.enc_spk_ex = SpeakerEncoderEx(
"https://github.com/coqui-ai/TTS/releases/download/v0.13.0_models/speaker_encoder.pt"
"https://github.com/coqui-ai/TTS/releases/download/v0.13.0_models/speaker_encoder.pt",
device=self.device
)

def init_multispeaker(self, config: Coqpit):
Expand Down

0 comments on commit 3a20f47

Please sign in to comment.