-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Expand file tree
/
Copy pathDDSP_SVCSetting.py
More file actions
40 lines (35 loc) · 972 Bytes
/
Copy pathDDSP_SVCSetting.py
File metadata and controls
40 lines (35 loc) · 972 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
from dataclasses import dataclass, field
@dataclass
class DDSP_SVCSettings:
gpu: int = -9999
dstId: int = 1
f0Detector: str = "dio" # dio or harvest or crepe # parselmouth
tran: int = 20
silentThreshold: float = 0.00001
extraConvertSize: int = 1024 * 32
# useEnhancer: int = 0
# useDiff: int = 1
# useDiffDpm: int = 0
diffMethod: str = "dpm-solver" # "pndm", "dpm-solver"
useDiffSilence: int = 0
diffAcc: int = 20
# diffSpkId: int = 1
kStep: int = 120
threshold: int = -45
speakers: dict[str, int] = field(default_factory=lambda: {})
# ↓mutableな物だけ列挙
intData = [
"gpu",
"dstId",
"tran",
"extraConvertSize",
# "useEnhancer",
# "useDiff",
# "useDiffDpm",
"useDiffSilence",
"diffAcc",
# "diffSpkId",
"kStep",
]
floatData = ["silentThreshold"]
strData = ["f0Detector", "diffMethod"]