Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set default duration limit factor to 1 for K2 Iterable Dataset #148

Merged
merged 1 commit into from
Nov 23, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lhotse/dataset/speech_recognition.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def __init__(
shuffle: bool = False,
concat_cuts: bool = True,
concat_cuts_gap: Seconds = 1.0,
concat_cuts_duration_factor: float = 2
concat_cuts_duration_factor: float = 1
):
"""
K2 ASR IterableDataset constructor.
Expand All @@ -134,7 +134,7 @@ def __init__(
:param concat_cuts_gap: The duration of silence in seconds that is inserted between the cuts;
it's goal is to let the model "know" that there are separate utterances in a single example.
:param concat_cuts_duration_factor: Determines the maximum duration of the concatenated cuts;
by default it's twice the duration of the longest cut in the batch.
by default it's 1, setting the limit at the duration of the longest cut in the batch.
"""
super().__init__()
# Initialize the fields
Expand Down