在载入vits权重之后保存tts_config

This commit is contained in:
ChasonJiang 2025-07-18 11:50:52 +08:00
parent 5cf55434eb
commit 35eddf8d04

View File

@ -578,6 +578,10 @@ class TTS:
if self.configs.is_half and str(self.configs.device) != "cpu":
self.vits_model = self.vits_model.half()
self.configs.save_configs()
def init_t2s_weights(self, weights_path: str):
print(f"Loading Text2Semantic weights from {weights_path}")
self.configs.t2s_weights_path = weights_path