Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Stardust-minus committed Sep 7, 2023
1 parent cea6c28 commit 67f4d08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions train_ms.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ def run():
num_replicas=n_gpus,
rank=rank,
shuffle=True,
persistent_workers=True,
prefetch_factor=4,
)
collate_fn = TextAudioSpeakerCollate()
train_loader = DataLoader(
Expand All @@ -83,6 +81,8 @@ def run():
pin_memory=True,
collate_fn=collate_fn,
batch_sampler=train_sampler,
persistent_workers=True,
prefetch_factor=4,
) # DataLoader config could be adjusted.
if rank == 0:
eval_dataset = TextAudioSpeakerLoader(hps.data.validation_files, hps.data)
Expand Down

0 comments on commit 67f4d08

Please sign in to comment.