Spaces:
Paused
Paused
JacobLinCool
commited on
Commit
•
ee47d2b
1
Parent(s):
ea3ebc0
fix: pre-trained model
Browse files
infer/modules/train/train.py
CHANGED
@@ -95,17 +95,17 @@ def train(exp_dir: str):
|
|
95 |
|
96 |
hps = utils.get_hparams_from_dir(exp_dir)
|
97 |
hps.experiment_dir = exp_dir
|
98 |
-
hps.save_every_epoch =
|
99 |
hps.name = os.path.basename(exp_dir)
|
100 |
hps.total_epoch = 100
|
101 |
-
hps.pretrainG = ""
|
102 |
-
hps.pretrainD = ""
|
103 |
hps.version = "v2"
|
104 |
hps.gpus = "0"
|
105 |
hps.train.batch_size = 8
|
106 |
hps.sample_rate = "40k"
|
107 |
hps.if_f0 = 1
|
108 |
-
hps.if_latest =
|
109 |
hps.save_every_weights = "0"
|
110 |
hps.if_cache_data_in_gpu = True
|
111 |
hps.data.training_files = "%s/filelist.txt" % exp_dir
|
@@ -629,5 +629,3 @@ def train_and_evaluate(
|
|
629 |
)
|
630 |
)
|
631 |
)
|
632 |
-
sleep(1)
|
633 |
-
os._exit(2333333)
|
|
|
95 |
|
96 |
hps = utils.get_hparams_from_dir(exp_dir)
|
97 |
hps.experiment_dir = exp_dir
|
98 |
+
hps.save_every_epoch = 5
|
99 |
hps.name = os.path.basename(exp_dir)
|
100 |
hps.total_epoch = 100
|
101 |
+
hps.pretrainG = "assets/pretrained_v2/f0G40k.pth"
|
102 |
+
hps.pretrainD = "assets/pretrained_v2/f0D40k.pth"
|
103 |
hps.version = "v2"
|
104 |
hps.gpus = "0"
|
105 |
hps.train.batch_size = 8
|
106 |
hps.sample_rate = "40k"
|
107 |
hps.if_f0 = 1
|
108 |
+
hps.if_latest = 0
|
109 |
hps.save_every_weights = "0"
|
110 |
hps.if_cache_data_in_gpu = True
|
111 |
hps.data.training_files = "%s/filelist.txt" % exp_dir
|
|
|
629 |
)
|
630 |
)
|
631 |
)
|
|
|
|