Spaces:
Runtime error
Runtime error
JacobLinCool
commited on
Commit
•
a0da4cc
1
Parent(s):
385c19b
perf: set batch size to 128
Browse files- app/train.py +1 -1
- config.json +1 -1
- infer/modules/train/train.py +1 -1
app/train.py
CHANGED
@@ -79,7 +79,7 @@ def write_filelist(exp_dir: str) -> None:
|
|
79 |
f.write("\n".join(opt))
|
80 |
|
81 |
|
82 |
-
@zero(duration=
|
83 |
def train_model(exp_dir: str) -> str:
|
84 |
shutil.copy("config.json", exp_dir)
|
85 |
write_filelist(exp_dir)
|
|
|
79 |
f.write("\n".join(opt))
|
80 |
|
81 |
|
82 |
+
@zero(duration=240)
|
83 |
def train_model(exp_dir: str) -> str:
|
84 |
shutil.copy("config.json", exp_dir)
|
85 |
write_filelist(exp_dir)
|
config.json
CHANGED
@@ -58,7 +58,7 @@
|
|
58 |
"use_spectral_norm": false
|
59 |
},
|
60 |
"train": {
|
61 |
-
"batch_size":
|
62 |
"betas": [
|
63 |
0.8,
|
64 |
0.99
|
|
|
58 |
"use_spectral_norm": false
|
59 |
},
|
60 |
"train": {
|
61 |
+
"batch_size": 128,
|
62 |
"betas": [
|
63 |
0.8,
|
64 |
0.99
|
infer/modules/train/train.py
CHANGED
@@ -98,7 +98,7 @@ def train(exp_dir: str):
|
|
98 |
hps.pretrainD = "assets/pretrained_v2/f0D40k.pth"
|
99 |
hps.version = "v2"
|
100 |
hps.gpus = "0"
|
101 |
-
hps.train.batch_size =
|
102 |
hps.sample_rate = "40k"
|
103 |
hps.if_f0 = 1
|
104 |
hps.if_latest = 0
|
|
|
98 |
hps.pretrainD = "assets/pretrained_v2/f0D40k.pth"
|
99 |
hps.version = "v2"
|
100 |
hps.gpus = "0"
|
101 |
+
hps.train.batch_size = 128
|
102 |
hps.sample_rate = "40k"
|
103 |
hps.if_f0 = 1
|
104 |
hps.if_latest = 0
|