Skip to content

Commit

Permalink
Fix type check
Browse files Browse the repository at this point in the history
  • Loading branch information
TCord committed Dec 4, 2023
1 parent b887cc2 commit fe5458b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 0 additions & 4 deletions padertorch/contrib/tcl/speaker_embeddings/dvectors.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
"""
Resnet taken from torchvision.models
See https://github.com/pytorch/vision/blob/main/torchvision/models/resnet.py
"""
import warnings

import numpy as np
Expand Down
5 changes: 2 additions & 3 deletions padertorch/contrib/tcl/utils/augmentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
class AugmentationHelper:
def __init__(self,
augmentation_sets: Dict = None,
reverb_set: Union[lazy_dataset.Dataset, List] = None,
p_augment: float = 0.,
p_reverb=None,
augmentation_type: Union[str, Iterable] = ('noise', 'music', 'speech'),
Expand All @@ -20,10 +19,10 @@ def __init__(self,
target_key='speech_image'
):
self.augmentation_dataset = augmentation_sets
for k, v in self.augmentation_dataset:
for k, v in self.augmentation_dataset.items():
if isinstance(v, list):
self.augmentation_dataset[k] = lazy_dataset.concatenate(*v)
assert self.augmentation_dataset[k] is lazy_dataset.Dataset, \
assert isinstance(self.augmentation_dataset[k], lazy_dataset.Dataset), \
f'expected dataset of type lazy_dataset.Dataset, got {repr(v)} for dataset {k}'
self.p_augment = p_augment
if p_reverb is None:
Expand Down

0 comments on commit fe5458b

Please sign in to comment.