mirror of
https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI.git
synced 2025-03-10 07:44:55 +08:00
Format code (#564)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
125a0a7b02
commit
e4417ce82f
@ -675,7 +675,7 @@ def change_sr2(sr2, if_f0_3, version19):
|
||||
else "",
|
||||
"pretrained%s/%sD%s.pth" % (path_str, f0_str, sr2)
|
||||
if if_pretrained_discriminator_exist
|
||||
else ""
|
||||
else "",
|
||||
)
|
||||
|
||||
|
||||
@ -684,9 +684,9 @@ def change_version19(sr2, if_f0_3, version19):
|
||||
if sr2 == "32k" and version19 == "v1":
|
||||
sr2 = "40k"
|
||||
to_return_sr2 = (
|
||||
{"choices": ["40k", "48k"], "__type__": "update","value":sr2}
|
||||
{"choices": ["40k", "48k"], "__type__": "update", "value": sr2}
|
||||
if version19 == "v1"
|
||||
else {"choices": ["40k", "48k","32k"], "__type__": "update","value":sr2}
|
||||
else {"choices": ["40k", "48k", "32k"], "__type__": "update", "value": sr2}
|
||||
)
|
||||
f0_str = "f0" if if_f0_3 else ""
|
||||
if_pretrained_generator_exist = os.access(
|
||||
@ -712,7 +712,7 @@ def change_version19(sr2, if_f0_3, version19):
|
||||
"pretrained%s/%sD%s.pth" % (path_str, f0_str, sr2)
|
||||
if if_pretrained_discriminator_exist
|
||||
else "",
|
||||
to_return_sr2
|
||||
to_return_sr2,
|
||||
)
|
||||
|
||||
|
||||
|
@ -360,7 +360,7 @@ def get_hparams(init=True):
|
||||
if not os.path.exists(experiment_dir):
|
||||
os.makedirs(experiment_dir)
|
||||
|
||||
if(args.version=="v1"or args.sample_rate=="40k"):
|
||||
if args.version == "v1" or args.sample_rate == "40k":
|
||||
config_path = "configs/%s.json" % args.sample_rate
|
||||
else:
|
||||
config_path = "configs/%s_v2.json" % args.sample_rate
|
||||
|
Loading…
Reference in New Issue
Block a user