Format code (#564)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
github-actions[bot] 2023-06-18 13:55:51 +00:00 committed by GitHub
parent 125a0a7b02
commit e4417ce82f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -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,
)

View File

@ -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