Spaces:
Sleeping
Sleeping
Upload train.py
Browse files
train.py
CHANGED
@@ -9,7 +9,7 @@ sys.path.append(os.path.join(now_dir))
|
|
9 |
|
10 |
import datetime
|
11 |
|
12 |
-
from lib
|
13 |
|
14 |
hps = utils.get_hparams()
|
15 |
os.environ["CUDA_VISIBLE_DEVICES"] = hps.gpus.replace("-", ",")
|
@@ -67,14 +67,14 @@ else:
|
|
67 |
MultiPeriodDiscriminatorV2 as MultiPeriodDiscriminator,
|
68 |
)
|
69 |
|
70 |
-
from
|
71 |
discriminator_loss,
|
72 |
feature_loss,
|
73 |
generator_loss,
|
74 |
kl_loss,
|
75 |
)
|
76 |
-
from
|
77 |
-
from
|
78 |
|
79 |
global_step = 0
|
80 |
|
|
|
9 |
|
10 |
import datetime
|
11 |
|
12 |
+
from lib import utils
|
13 |
|
14 |
hps = utils.get_hparams()
|
15 |
os.environ["CUDA_VISIBLE_DEVICES"] = hps.gpus.replace("-", ",")
|
|
|
67 |
MultiPeriodDiscriminatorV2 as MultiPeriodDiscriminator,
|
68 |
)
|
69 |
|
70 |
+
from lib.losses import (
|
71 |
discriminator_loss,
|
72 |
feature_loss,
|
73 |
generator_loss,
|
74 |
kl_loss,
|
75 |
)
|
76 |
+
from lib.mel_processing import mel_spectrogram_torch, spec_to_mel_torch
|
77 |
+
from lib.process_ckpt import savee
|
78 |
|
79 |
global_step = 0
|
80 |
|