fix
This commit is contained in:
@@ -72,8 +72,6 @@ def run():
|
|||||||
num_replicas=n_gpus,
|
num_replicas=n_gpus,
|
||||||
rank=rank,
|
rank=rank,
|
||||||
shuffle=True,
|
shuffle=True,
|
||||||
persistent_workers=True,
|
|
||||||
prefetch_factor=4,
|
|
||||||
)
|
)
|
||||||
collate_fn = TextAudioSpeakerCollate()
|
collate_fn = TextAudioSpeakerCollate()
|
||||||
train_loader = DataLoader(
|
train_loader = DataLoader(
|
||||||
@@ -83,6 +81,8 @@ def run():
|
|||||||
pin_memory=True,
|
pin_memory=True,
|
||||||
collate_fn=collate_fn,
|
collate_fn=collate_fn,
|
||||||
batch_sampler=train_sampler,
|
batch_sampler=train_sampler,
|
||||||
|
persistent_workers=True,
|
||||||
|
prefetch_factor=4,
|
||||||
) # DataLoader config could be adjusted.
|
) # DataLoader config could be adjusted.
|
||||||
if rank == 0:
|
if rank == 0:
|
||||||
eval_dataset = TextAudioSpeakerLoader(hps.data.validation_files, hps.data)
|
eval_dataset = TextAudioSpeakerLoader(hps.data.validation_files, hps.data)
|
||||||
|
|||||||
Reference in New Issue
Block a user