Skip to content

Commit

Permalink
validate cuts of UnsupervisedWaveformDataset
Browse files Browse the repository at this point in the history
  • Loading branch information
pengzhendong committed Dec 18, 2024
1 parent 2a04ecf commit fe17afd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lhotse/dataset/unsupervised.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ def __init__(self, collate: bool = True) -> None:
self.collate = collate

def __getitem__(self, cuts: CutSet) -> Dict[str, Any]:
self._validate(cuts)

if self.collate:
audio, audio_lens = collate_audio(cuts)
return {
Expand Down

0 comments on commit fe17afd

Please sign in to comment.