Merge 3a04e9adad5077315f7433bae23e59062d204f15 into fdf794e31d1fd6f91c5cb4fbb0396094491a31ac

This commit is contained in:
wzy3650 2025-08-18 04:02:35 +00:00 committed by GitHub
commit 21f4e1ff55
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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