Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
juberti committed Oct 17, 2024
1 parent 0f983af commit 9bd8e4b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ultravox/data/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,9 @@ def __init__(self, args: VoiceDatasetArgs, config: DatasetConfig) -> None:
)
dsets.append(ds)
total_samples += split.num_samples
assert (
len(dsets) > 0
), f"The {config.name} dataset has no {self._args.split} splits."
dataset = ds if len(dsets) == 1 else hf_datasets.concatenate_datasets(dsets)
super()._init_dataset(dataset, total_samples)

Expand Down

0 comments on commit 9bd8e4b

Please sign in to comment.