Merge c2a1decf1a23fb9b9481403c758a211300b17d16 into 6d51ffceafbf240145619af4c92408a6e54b7924

This commit is contained in:
Kyozzz 2026-11-14 19:02:30 +09:00 committed by GitHub
commit 212f408670
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 2 deletions

View File

@ -29,7 +29,10 @@ def synthesize(
# Change model weights
change_gpt_weights(gpt_path=GPT_model_path)
change_sovits_weights(sovits_path=SoVITS_model_path)
# change_sovits_weights is a generator function (it yields UI update dicts):
# iterate it so the SoVITS weights actually load.
for _ in change_sovits_weights(sovits_path=SoVITS_model_path):
pass
# Synthesize audio
synthesis_result = get_tts_wav(

View File

@ -285,7 +285,10 @@ class GPTSoVITSGUI(QMainWindow):
change_gpt_weights(gpt_path=GPT_model_path)
self.GPT_Path = GPT_model_path
if SoVITS_model_path != self.SoVITS_Path:
change_sovits_weights(sovits_path=SoVITS_model_path)
# change_sovits_weights is a generator function (it yields UI update dicts):
# iterate it so the SoVITS weights actually load.
for _ in change_sovits_weights(sovits_path=SoVITS_model_path):
pass
self.SoVITS_Path = SoVITS_model_path
synthesis_result = get_tts_wav(