Skip to content

Commit

Permalink
[TTS] enforced pin_memory = True (NVIDIA#4341)
Browse files Browse the repository at this point in the history
Signed-off-by: Xuesong Yang <1646669+XuesongYang@users.noreply.github.com>
Signed-off-by: stevehuang52 <heh@nvidia.com>
  • Loading branch information
XuesongYang authored and stevehuang52 committed Jun 8, 2022
1 parent 77970cc commit 770f259
Show file tree
Hide file tree
Showing 16 changed files with 24 additions and 8 deletions.
4 changes: 2 additions & 2 deletions examples/tts/conf/aligner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ model:
shuffle: true
batch_size: 64
num_workers: 4
pin_memory: false
pin_memory: true

validation_ds:
dataset:
Expand All @@ -110,7 +110,7 @@ model:
shuffle: false
batch_size: 64
num_workers: 1
pin_memory: false
pin_memory: true

preprocessor:
_target_: nemo.collections.asr.modules.AudioToMelSpectrogramPreprocessor
Expand Down
2 changes: 2 additions & 0 deletions examples/tts/conf/fastpitch_align_44100.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ model:
shuffle: true
batch_size: 32
num_workers: 12
pin_memory: true


validation_ds:
Expand Down Expand Up @@ -140,6 +141,7 @@ model:
shuffle: false
batch_size: 32
num_workers: 8
pin_memory: true

preprocessor:
_target_: nemo.collections.asr.modules.AudioToMelSpectrogramPreprocessor
Expand Down
2 changes: 2 additions & 0 deletions examples/tts/conf/fastpitch_align_v1.05.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ model:
shuffle: true
batch_size: 32
num_workers: 12
pin_memory: true

validation_ds:
dataset:
Expand Down Expand Up @@ -140,6 +141,7 @@ model:
shuffle: false
batch_size: 32
num_workers: 8
pin_memory: true

preprocessor:
_target_: nemo.collections.asr.modules.AudioToMelSpectrogramPreprocessor
Expand Down
1 change: 1 addition & 0 deletions examples/tts/conf/hifigan/model/train_ds/train_ds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ dataloader_params:
shuffle: true
batch_size: 16
num_workers: 4
pin_memory: true
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ dataloader_params:
shuffle: true
batch_size: 16
num_workers: 4
pin_memory: true
1 change: 1 addition & 0 deletions examples/tts/conf/hifigan/model/validation_ds/val_ds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ dataloader_params:
shuffle: false
batch_size: 16
num_workers: 1
pin_memory: true
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ dataloader_params:
shuffle: false
batch_size: 16
num_workers: 4
pin_memory: true
4 changes: 2 additions & 2 deletions examples/tts/conf/mixer-tts-x.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ model:
shuffle: true
batch_size: 64
num_workers: 4
pin_memory: false
pin_memory: true

validation_ds:
dataset:
Expand Down Expand Up @@ -131,7 +131,7 @@ model:
shuffle: false
batch_size: 64
num_workers: 1
pin_memory: false
pin_memory: true

preprocessor:
_target_: nemo.collections.asr.modules.AudioToMelSpectrogramPreprocessor
Expand Down
4 changes: 2 additions & 2 deletions examples/tts/conf/mixer-tts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ model:
shuffle: true
batch_size: 64
num_workers: 4
pin_memory: false
pin_memory: true

validation_ds:
dataset:
Expand Down Expand Up @@ -133,7 +133,7 @@ model:
shuffle: false
batch_size: 64
num_workers: 1
pin_memory: false
pin_memory: true

preprocessor:
_target_: nemo.collections.asr.modules.AudioToMelSpectrogramPreprocessor
Expand Down
4 changes: 2 additions & 2 deletions examples/tts/conf/tacotron2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ model:
shuffle: true
batch_size: 48
num_workers: 4
pin_memory: false
pin_memory: true

validation_ds:
dataset:
Expand All @@ -105,7 +105,7 @@ model:
shuffle: false
batch_size: 24
num_workers: 8
pin_memory: false
pin_memory: true

preprocessor:
_target_: nemo.collections.asr.parts.preprocessing.features.FilterbankFeatures
Expand Down
2 changes: 2 additions & 0 deletions examples/tts/conf/tacotron2_44100.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ model:
shuffle: true
batch_size: 48
num_workers: 4
pin_memory: true


validation_ds:
Expand All @@ -90,6 +91,7 @@ model:
shuffle: false
batch_size: 48
num_workers: 8
pin_memory: true

preprocessor:
_target_: nemo.collections.asr.parts.preprocessing.features.FilterbankFeatures
Expand Down
1 change: 1 addition & 0 deletions examples/tts/conf/univnet/model/train_ds/train_ds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ dataloader_params:
shuffle: true
batch_size: 32
num_workers: 4
pin_memory: true
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ dataloader_params:
shuffle: true
batch_size: 32
num_workers: 4
pin_memory: true
1 change: 1 addition & 0 deletions examples/tts/conf/univnet/model/validation_ds/val_ds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ dataloader_params:
shuffle: false
batch_size: 16
num_workers: 1
pin_memory: true
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ dataloader_params:
shuffle: false
batch_size: 16
num_workers: 4
pin_memory: true
2 changes: 2 additions & 0 deletions examples/tts/conf/waveglow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ model:
shuffle: true
batch_size: 12
num_workers: 4
pin_memory: true

validation_ds:
dataset:
Expand All @@ -45,6 +46,7 @@ model:
shuffle: false
batch_size: 8
num_workers: 4
pin_memory: true

preprocessor:
_target_: nemo.collections.asr.parts.preprocessing.features.FilterbankFeatures
Expand Down

0 comments on commit 770f259

Please sign in to comment.