mirror of
https://github.com/wassname/TTS.git
synced 2026-09-09 11:16:00 +08:00
fix: xtts not taking into account device flag (#2951)
* fix: xtts not taking into account device flag * Style changes --------- Co-authored-by: Julian Weber <julian.weber@hotmail.fr>
This commit is contained in:
@@ -642,7 +642,7 @@ class Xtts(BaseTTS):
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user