Sync (#1135)
* Add files via upload (#978) * Update api.py (#979) 修复SynthesizerTrn kwargs 传递异常。 --------- Co-authored-by: Enes Çakırcalı <31443145+enescakircali@users.noreply.github.com> Co-authored-by: Hayo <632244510@qq.com>
This commit is contained in:
3
api.py
3
api.py
@@ -179,11 +179,12 @@ def change_sovits_weights(sovits_path):
|
||||
hps = dict_s2["config"]
|
||||
hps = DictToAttrRecursive(hps)
|
||||
hps.model.semantic_frame_rate = "25hz"
|
||||
model_params_dict = vars(hps.model)
|
||||
vq_model = SynthesizerTrn(
|
||||
hps.data.filter_length // 2 + 1,
|
||||
hps.train.segment_size // hps.data.hop_length,
|
||||
n_speakers=hps.data.n_speakers,
|
||||
**hps.model
|
||||
**model_params_dict
|
||||
)
|
||||
if ("pretrained" not in sovits_path):
|
||||
del vq_model.enc_q
|
||||
|
||||
Reference in New Issue
Block a user