mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-09-03 22:24:19 +00:00
Update train.py
This commit is contained in:
parent
5d630a8b36
commit
638cb5cc35
@ -1145,7 +1145,7 @@ def run(rank, world_size, args):
|
|||||||
# You should use ../local/display_manifest_statistics.py to get
|
# You should use ../local/display_manifest_statistics.py to get
|
||||||
# an utterance duration distribution for your dataset to select
|
# an utterance duration distribution for your dataset to select
|
||||||
# the threshold
|
# the threshold
|
||||||
if c.duration < 1.0 or c.duration > 12.0:
|
if c.duration < 1.0 or c.duration > 15.0:
|
||||||
# logging.warning(
|
# logging.warning(
|
||||||
# f"Exclude cut with ID {c.id} from training. Duration: {c.duration}"
|
# f"Exclude cut with ID {c.id} from training. Duration: {c.duration}"
|
||||||
# )
|
# )
|
||||||
@ -1273,8 +1273,8 @@ def display_and_save_batch(
|
|||||||
for the content in it.
|
for the content in it.
|
||||||
params:
|
params:
|
||||||
Parameters for training. See :func:`get_params`.
|
Parameters for training. See :func:`get_params`.
|
||||||
graph_compiler:
|
sp:
|
||||||
The compiler to encode texts to ids.
|
The sentence piece model.
|
||||||
"""
|
"""
|
||||||
from lhotse.utils import uuid4
|
from lhotse.utils import uuid4
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user