From 6939b3d6aadf49d10de98d7de08afe7aa10aea56 Mon Sep 17 00:00:00 2001 From: marcoyang1998 Date: Tue, 18 Jul 2023 11:14:06 +0800 Subject: [PATCH] minor fixes --- egs/libriheavy/ASR/local/bpe2tokens.py | 2 +- egs/libriheavy/ASR/local/compute_fbank_libriheavy.py | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/egs/libriheavy/ASR/local/bpe2tokens.py b/egs/libriheavy/ASR/local/bpe2tokens.py index 81e7b3342..d078e5b98 100755 --- a/egs/libriheavy/ASR/local/bpe2tokens.py +++ b/egs/libriheavy/ASR/local/bpe2tokens.py @@ -34,4 +34,4 @@ def main(): if __name__ == "__main__": - main() \ No newline at end of file + main() diff --git a/egs/libriheavy/ASR/local/compute_fbank_libriheavy.py b/egs/libriheavy/ASR/local/compute_fbank_libriheavy.py index 61c645ced..05ade450c 100755 --- a/egs/libriheavy/ASR/local/compute_fbank_libriheavy.py +++ b/egs/libriheavy/ASR/local/compute_fbank_libriheavy.py @@ -40,9 +40,8 @@ from lhotse import ( KaldifeatFbankConfig, LilcomChunkyWriter, ) -from lhotse.recipes.utils import read_manifests_if_cached -from icefall.utils import get_executor, str2bool +from icefall.utils import get_executor # Torch's multithreaded behavior needs to be disabled or # it wastes a lot of CPU and slow things down. @@ -61,7 +60,7 @@ def get_args(): help="""Path to the bpe.model. If not None, we will remove short and long utterances before extracting features""", ) - + parser.add_argument( "--fbank-dir", type=str, @@ -102,14 +101,14 @@ def get_args(): "--start", type=int, default=0, - help="Process pieces starting from this number (inclusive). Only used in medium and large subset", + help="Process pieces starting from this number (inclusive).", ) parser.add_argument( "--stop", type=int, default=-1, - help="Stop processing pieces until this number (exclusive). Only used in medium and large subset", + help="Stop processing pieces until this number (exclusive).", ) return parser.parse_args()