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
|
13 |
|
14 |
hps = utils.get_hparams()
|
15 |
os.environ["CUDA_VISIBLE_DEVICES"] = hps.gpus.replace("-", ",")
|
@@ -45,8 +45,8 @@ from torch.nn.parallel import DistributedDataParallel as DDP
|
|
45 |
from torch.utils.data import DataLoader
|
46 |
from torch.utils.tensorboard import SummaryWriter
|
47 |
|
48 |
-
from
|
49 |
-
from
|
50 |
DistributedBucketSampler,
|
51 |
TextAudioCollate,
|
52 |
TextAudioCollateMultiNSFsid,
|
|
|
9 |
|
10 |
import datetime
|
11 |
|
12 |
+
from lib.train import utils
|
13 |
|
14 |
hps = utils.get_hparams()
|
15 |
os.environ["CUDA_VISIBLE_DEVICES"] = hps.gpus.replace("-", ",")
|
|
|
45 |
from torch.utils.data import DataLoader
|
46 |
from torch.utils.tensorboard import SummaryWriter
|
47 |
|
48 |
+
from lib import commons
|
49 |
+
from lib.data_utils import (
|
50 |
DistributedBucketSampler,
|
51 |
TextAudioCollate,
|
52 |
TextAudioCollateMultiNSFsid,
|