Skip to content

Commit

Permalink
leave the old code in comments for reference
Browse files Browse the repository at this point in the history
  • Loading branch information
JinZr committed Jan 8, 2024
1 parent 9c29aaa commit b5dfe24
Show file tree
Hide file tree
Showing 8 changed files with 64 additions and 0 deletions.
9 changes: 9 additions & 0 deletions egs/librispeech/ASR/conformer_ctc3/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -954,6 +954,15 @@ def run(rank, world_size, args):

if params.full_libri:
train_cuts = librispeech.train_all_shuf_cuts()

# previously we used the following code to load all training cuts
# strictly speaking, shuffled training cuts should be used instead
# but we leave the code here to demonstrate that there is an option
# like this to combine multiple cutsets

# train_cuts = librispeech.train_clean_100_cuts()
# train_cuts += librispeech.train_clean_360_cuts()
# train_cuts += librispeech.train_other_500_cuts()
else:
train_cuts = librispeech.train_clean_100_cuts()

Expand Down
9 changes: 9 additions & 0 deletions egs/librispeech/ASR/conformer_mmi/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,15 @@ def run(rank, world_size, args):

if params.full_libri:
train_cuts = librispeech.train_all_shuf_cuts()

# previously we used the following code to load all training cuts,
# strictly speaking, shuffled training cuts should be used instead,
# but we leave the code here to demonstrate that there is an option
# like this to combine multiple cutsets

# train_cuts = librispeech.train_clean_100_cuts()
# train_cuts += librispeech.train_clean_360_cuts()
# train_cuts += librispeech.train_other_500_cuts()
else:
train_cuts = librispeech.train_clean_100_cuts()

Expand Down
9 changes: 9 additions & 0 deletions egs/librispeech/ASR/lstm_transducer_stateless3/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -991,6 +991,15 @@ def run(rank, world_size, args):

if params.full_libri:
train_cuts = librispeech.train_all_shuf_cuts()

# previously we used the following code to load all training cuts,
# strictly speaking, shuffled training cuts should be used instead,
# but we leave the code here to demonstrate that there is an option
# like this to combine multiple cutsets

# train_cuts = librispeech.train_clean_100_cuts()
# train_cuts += librispeech.train_clean_360_cuts()
# train_cuts += librispeech.train_other_500_cuts()
else:
train_cuts = librispeech.train_clean_100_cuts()

Expand Down
9 changes: 9 additions & 0 deletions egs/librispeech/ASR/pruned2_knowledge/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -819,6 +819,15 @@ def run(rank, world_size, args):

if params.full_libri:
train_cuts = librispeech.train_all_shuf_cuts()

# previously we used the following code to load all training cuts,
# strictly speaking, shuffled training cuts should be used instead,
# but we leave the code here to demonstrate that there is an option
# like this to combine multiple cutsets

# train_cuts = librispeech.train_clean_100_cuts()
# train_cuts += librispeech.train_clean_360_cuts()
# train_cuts += librispeech.train_other_500_cuts()
else:
train_cuts = librispeech.train_clean_100_cuts()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1047,6 +1047,15 @@ def run(rank, world_size, args):
else:
if params.full_libri:
train_cuts = librispeech.train_all_shuf_cuts()

# previously we used the following code to load all training cuts,
# strictly speaking, shuffled training cuts should be used instead,
# but we leave the code here to demonstrate that there is an option
# like this to combine multiple cutsets

# train_cuts = librispeech.train_clean_100_cuts()
# train_cuts += librispeech.train_clean_360_cuts()
# train_cuts += librispeech.train_other_500_cuts()
else:
train_cuts = librispeech.train_clean_100_cuts()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1152,6 +1152,11 @@ def run(rank, world_size, args):

if params.full_libri:
train_cuts = librispeech.train_all_shuf_cuts()

# previously we used the following code to load all training cuts,
# strictly speaking, shuffled training cuts should be used instead,
# but we leave the code here to demonstrate that there is an option
# like this to combine multiple cutsets
else:
train_cuts = librispeech.train_clean_100_cuts()

Expand Down
9 changes: 9 additions & 0 deletions egs/librispeech/ASR/zipformer/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -1176,6 +1176,15 @@ def run(rank, world_size, args):

if params.full_libri:
train_cuts = librispeech.train_all_shuf_cuts()

# previously we used the following code to load all training cuts,
# strictly speaking, shuffled training cuts should be used instead,
# but we leave the code here to demonstrate that there is an option
# like this to combine multiple cutsets

# train_cuts = librispeech.train_clean_100_cuts()
# train_cuts += librispeech.train_clean_360_cuts()
# train_cuts += librispeech.train_other_500_cuts()
else:
train_cuts = librispeech.train_clean_100_cuts()

Expand Down
5 changes: 5 additions & 0 deletions egs/librispeech/ASR/zipformer_mmi/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -992,6 +992,11 @@ def run(rank, world_size, args):

if params.full_libri:
train_cuts = librispeech.train_all_shuf_cuts()

# previously we used the following code to load all training cuts,
# strictly speaking, shuffled training cuts should be used instead,
# but we leave the code here to demonstrate that there is an option
# like this to combine multiple cutsets
else:
train_cuts = librispeech.train_clean_100_cuts()

Expand Down

0 comments on commit b5dfe24

Please sign in to comment.