Refactor: replace utils.HParams with HyperParameters Pydantic model

HyperParameters is largely a drop-in replacement for utils.HParams, which ensures type safety for hyper-parameters.
This commit is contained in:
tsukumi
2024-03-08 15:52:37 +00:00
parent 7f0b252806
commit a84783a6cc
11 changed files with 190 additions and 221 deletions

View File

@@ -1029,10 +1029,10 @@ class SynthesizerTrn(nn.Module):
bert,
style_vec,
noise_scale=0.667,
length_scale=1,
length_scale=1.0,
noise_scale_w=0.8,
max_len=None,
sdp_ratio=0,
sdp_ratio=0.0,
y=None,
):
# x, m_p, logs_p, x_mask = self.enc_p(x, x_lengths, tone, language, bert)