Skip to content

Commit 33b550b

Browse files
committed
no cache again
1 parent 5040cde commit 33b550b

2 files changed

Lines changed: 0 additions & 7 deletions

File tree

speechbrain/lobes/augment.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,6 @@ class EnvCorrupt(torch.nn.Module):
304304
A prepared csv file for loading room impulse responses.
305305
noise_csv : str
306306
A prepared csv file for loading noise data.
307-
noise_cache : bool
308-
Whether to cache noises.
309307
noise_num_workers : int
310308
Number of workers to use for loading noises.
311309
babble_speaker_count : int
@@ -340,7 +338,6 @@ def __init__(
340338
openrir_max_noise_len=None,
341339
reverb_csv=None,
342340
noise_csv=None,
343-
noise_cache=False,
344341
noise_num_workers=0,
345342
babble_speaker_count=0,
346343
babble_snr_low=0,
@@ -386,7 +383,6 @@ def __init__(
386383
self.add_noise = AddNoise(
387384
mix_prob=noise_prob,
388385
csv_file=noise_csv,
389-
cache=noise_cache,
390386
num_workers=noise_num_workers,
391387
snr_low=noise_snr_low,
392388
snr_high=noise_snr_high,

speechbrain/processing/speech_augmentation.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ def __init__(
8080
csv_file=None,
8181
csv_keys=None,
8282
sorting="random",
83-
cache=False,
8483
num_workers=0,
8584
snr_low=0,
8685
snr_high=0,
@@ -95,7 +94,6 @@ def __init__(
9594
self.csv_file = csv_file
9695
self.csv_keys = csv_keys
9796
self.sorting = sorting
98-
self.cache = cache
9997
self.num_workers = num_workers
10098
self.snr_low = snr_low
10199
self.snr_high = snr_high
@@ -187,7 +185,6 @@ def _load_noise(self, lengths, max_length):
187185
batch_size=batch_size,
188186
num_workers=self.num_workers,
189187
shuffle=(self.sorting == "random"),
190-
cache=self.cache,
191188
)
192189
self.noise_data = iter(self.data_loader)
193190

0 commit comments

Comments
 (0)