Format code (#612)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
github-actions[bot] 2023-06-23 22:00:17 +08:00 committed by GitHub
parent d4e9badf17
commit b9fdef34ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View File

@ -10,7 +10,7 @@ import warnings
import numpy as np import numpy as np
import torch import torch
os.environ['OPENBLAS_NUM_THREADS'] = '1' os.environ["OPENBLAS_NUM_THREADS"] = "1"
os.environ["no_proxy"] = "localhost, 127.0.0.1, ::1" os.environ["no_proxy"] = "localhost, 127.0.0.1, ::1"
import logging import logging
import threading import threading

View File

@ -92,7 +92,7 @@ def extract_small_model(path, name, sr, if_f0, info, version):
40000, 40000,
] ]
elif sr == "48k": elif sr == "48k":
if(version=="v1"): if version == "v1":
opt["config"] = [ opt["config"] = [
1025, 1025,
32, 32,
@ -127,15 +127,15 @@ def extract_small_model(path, name, sr, if_f0, info, version):
"1", "1",
[3, 7, 11], [3, 7, 11],
[[1, 3, 5], [1, 3, 5], [1, 3, 5]], [[1, 3, 5], [1, 3, 5], [1, 3, 5]],
[12,10,2,2], [12, 10, 2, 2],
512, 512,
[24,20,4,4], [24, 20, 4, 4],
109, 109,
256, 256,
48000, 48000,
] ]
elif sr == "32k": elif sr == "32k":
if(version=="v1"): if version == "v1":
opt["config"] = [ opt["config"] = [
513, 513,
32, 32,
@ -170,9 +170,9 @@ def extract_small_model(path, name, sr, if_f0, info, version):
"1", "1",
[3, 7, 11], [3, 7, 11],
[[1, 3, 5], [1, 3, 5], [1, 3, 5]], [[1, 3, 5], [1, 3, 5], [1, 3, 5]],
[10,8,2,2], [10, 8, 2, 2],
512, 512,
[20,16,4,4], [20, 16, 4, 4],
109, 109,
256, 256,
32000, 32000,