1
0
mirror of https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI.git synced 2026-06-11 05:30:30 +08:00

chore(format): run black on dev (#25)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2024-06-10 22:27:48 +09:00
committed by GitHub
parent 7572c44911
commit a6c6262d91
2 changed files with 4 additions and 4 deletions

View File

@@ -12,7 +12,9 @@ def get_synthesizer_ckpt(cpt, device=torch.device("cpu")):
elif version == "v2":
encoder_dim = 768
net_g = SynthesizerTrnMsNSFsid(
*cpt["config"], encoder_dim=encoder_dim, use_f0 = if_f0==1,
*cpt["config"],
encoder_dim=encoder_dim,
use_f0=if_f0 == 1,
)
del net_g.enc_q
net_g.load_state_dict(cpt["weight"], strict=False)