Compare commits

...

2 Commits

Author SHA1 Message Date
wzy3650
5a727e86c7
Merge fb58b81040da59c5962bdbd20a49f1c9b274a76a into 37f5abfcb4a6553652235909db2e124b6f8ff3a5 2025-06-25 14:54:24 +08:00
wangzeyuan
fb58b81040 fix bug 2025-06-14 14:30:12 +08:00

View File

@ -542,8 +542,8 @@ class TTS:
)
self.configs.use_vocoder = True
self.init_vocoder(model_version)
if "pretrained" not in weights_path and hasattr(vits_model, "enc_q"):
del vits_model.enc_q
if "pretrained" not in weights_path and hasattr(vits_model, "enc_q"):
del vits_model.enc_q
self.is_v2pro = model_version in {"v2Pro", "v2ProPlus"}