mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-08-22 11:15:51 +08:00
修复v3推理传参问题
This commit is contained in:
parent
7405427a0a
commit
590c83d766
@ -498,7 +498,7 @@ class TTS:
|
||||
|
||||
# print(f"model_version:{model_version}")
|
||||
# print(f'hps["model"]["version"]:{hps["model"]["version"]}')
|
||||
if model_version not in ["v3", "v4"]:
|
||||
if model_version not in {"v3", "v4"}:
|
||||
vits_model = SynthesizerTrn(
|
||||
self.configs.filter_length // 2 + 1,
|
||||
self.configs.segment_size // self.configs.hop_length,
|
||||
@ -507,6 +507,7 @@ class TTS:
|
||||
)
|
||||
self.configs.use_vocoder = False
|
||||
else:
|
||||
kwargs["model"]["version"]=model_version
|
||||
vits_model = SynthesizerTrnV3(
|
||||
self.configs.filter_length // 2 + 1,
|
||||
self.configs.segment_size // self.configs.hop_length,
|
||||
|
Loading…
x
Reference in New Issue
Block a user