Spaces:
Runtime error
Runtime error
Update configs/Kiritan.py
Browse files- configs/Kiritan.py +9 -26
configs/Kiritan.py
CHANGED
@@ -1,15 +1,8 @@
|
|
1 |
-
from pytorch_lightning.callbacks import LearningRateMonitor, ModelCheckpoint
|
2 |
-
|
3 |
_base_ = [
|
4 |
"./_base_/archs/hifi_svc.py",
|
5 |
-
"./_base_/trainers/base.py",
|
6 |
-
"./_base_/schedulers/exponential.py",
|
7 |
-
"./_base_/datasets/hifi_svc.py",
|
8 |
]
|
9 |
|
10 |
-
speaker_mapping = {
|
11 |
-
"kiritan": 0,
|
12 |
-
}
|
13 |
|
14 |
model = dict(
|
15 |
type="HiFiSVC",
|
@@ -33,24 +26,14 @@ preprocessing = dict(
|
|
33 |
),
|
34 |
augmentations=[
|
35 |
dict(
|
36 |
-
type="
|
37 |
-
key_shifts=[-5
|
38 |
-
probability=
|
39 |
-
),
|
40 |
-
],
|
41 |
-
)
|
42 |
-
|
43 |
-
trainer = dict(
|
44 |
-
# Disable gradient clipping, which is not supported by custom optimization
|
45 |
-
gradient_clip_val=None,
|
46 |
-
val_check_interval=1000,
|
47 |
-
check_val_every_n_epoch=None,
|
48 |
-
callbacks=[
|
49 |
-
ModelCheckpoint(
|
50 |
-
filename="{epoch}-{step}-{valid_loss:.2f}",
|
51 |
-
every_n_train_steps=1000,
|
52 |
-
save_top_k=-1,
|
53 |
),
|
54 |
-
|
|
|
|
|
|
|
|
|
55 |
],
|
56 |
)
|
|
|
|
|
|
|
1 |
_base_ = [
|
2 |
"./_base_/archs/hifi_svc.py",
|
|
|
|
|
|
|
3 |
]
|
4 |
|
5 |
+
speaker_mapping = {'kiritan': 0,}
|
|
|
|
|
6 |
|
7 |
model = dict(
|
8 |
type="HiFiSVC",
|
|
|
26 |
),
|
27 |
augmentations=[
|
28 |
dict(
|
29 |
+
type="RandomPitchShifting",
|
30 |
+
key_shifts=[-5., 5.],
|
31 |
+
probability=1.5,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
),
|
33 |
+
dict(
|
34 |
+
type="RandomTimeStretching",
|
35 |
+
factors=[0.8, 1.2],
|
36 |
+
probability=0.75,
|
37 |
+
)
|
38 |
],
|
39 |
)
|