Skip to content

Commit

Permalink
fix: xtts not taking into account device flag (#2951)
Browse files Browse the repository at this point in the history
* fix: xtts not taking into account device flag

* Style changes

---------

Co-authored-by: Julian Weber <[email protected]>
  • Loading branch information
loupzeur and WeberJulian authored Sep 20, 2023
1 parent 335ae63 commit da8b6bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TTS/tts/models/xtts.py
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ def load_checkpoint(
self.init_models()
if eval:
self.gpt.init_gpt_for_inference(kv_cache=self.args.kv_cache)
self.load_state_dict(load_fsspec(model_path)["model"], strict=strict)
self.load_state_dict(load_fsspec(model_path, map_location=self.device)["model"], strict=strict)

if eval:
self.gpt.init_gpt_for_inference(kv_cache=self.args.kv_cache)
Expand Down

0 comments on commit da8b6bb

Please sign in to comment.