mirror of
https://github.com/mozilla/DeepSpeech.git
synced 2025-10-26 11:19:39 +00:00
Respect None case for augmentations list
This commit is contained in:
parent
7a835bee5a
commit
a28df45192
@ -206,7 +206,7 @@ def apply_sample_augmentations(samples,
|
||||
if final_clock is not None:
|
||||
assert 0.0 <= final_clock <= 1.0
|
||||
assert clock <= final_clock
|
||||
augmentations = [aug for aug in augmentations if isinstance(aug, SampleAugmentation)]
|
||||
augmentations = [aug for aug in augmentations if isinstance(aug, SampleAugmentation)] if augmentations else []
|
||||
try:
|
||||
for augmentation in augmentations:
|
||||
augmentation.start(buffering=buffering)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user