JacobLinCool commited on
Commit
a0da4cc
1 Parent(s): 385c19b

perf: set batch size to 128

Browse files
Files changed (3) hide show
  1. app/train.py +1 -1
  2. config.json +1 -1
  3. 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=300)
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": 32,
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 = 32
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