Merge fb58b81040da59c5962bdbd20a49f1c9b274a76a into 6df61f58e4d18d4c2ad9d1eddd6a1bd690034c23

This commit is contained in:
wzy3650 2025-06-27 11:59:35 +08:00 committed by GitHub
commit f66d64050d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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"}