mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2026-11-17 18:43:37 +08:00
Merge c2a1decf1a23fb9b9481403c758a211300b17d16 into 6d51ffceafbf240145619af4c92408a6e54b7924
This commit is contained in:
commit
212f408670
@ -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(
|
||||
|
||||
@ -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(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user