mirror of
https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI.git
synced 2025-03-10 15:54:54 +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 "",
|
||||
)
|
||||
|
||||
|
||||
@ -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