From c061307c90c84c4c03d440286f1c54ef5b31eff1 Mon Sep 17 00:00:00 2001 From: zr_jin <60612200+JinZr@users.noreply.github.com> Date: Wed, 19 Jul 2023 11:51:40 +0800 Subject: [PATCH] updated --- egs/multi_zh-hans/ASR/local/compute_fbank_kespeech_splits.py | 4 ++-- egs/multi_zh-hans/ASR/local/preprocess_kespeech.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/egs/multi_zh-hans/ASR/local/compute_fbank_kespeech_splits.py b/egs/multi_zh-hans/ASR/local/compute_fbank_kespeech_splits.py index 4227d43db..b0ff8c8ba 100644 --- a/egs/multi_zh-hans/ASR/local/compute_fbank_kespeech_splits.py +++ b/egs/multi_zh-hans/ASR/local/compute_fbank_kespeech_splits.py @@ -47,7 +47,7 @@ def get_parser(): parser.add_argument( "--training-subset", type=str, - default="L", + default="train_phase1", help="The training subset for computing fbank feature.", ) @@ -93,7 +93,7 @@ def compute_fbank_kespeech_splits(args): subset = args.training_subset subset = str(subset) num_splits = args.num_splits - output_dir = f"data/fbank/{subset}_split_{num_splits}" + output_dir = f"data/fbank/KeSpeech/{subset}_split_{num_splits}" output_dir = Path(output_dir) assert output_dir.exists(), f"{output_dir} does not exist!" diff --git a/egs/multi_zh-hans/ASR/local/preprocess_kespeech.py b/egs/multi_zh-hans/ASR/local/preprocess_kespeech.py index 199166ced..824ee9140 100644 --- a/egs/multi_zh-hans/ASR/local/preprocess_kespeech.py +++ b/egs/multi_zh-hans/ASR/local/preprocess_kespeech.py @@ -47,7 +47,7 @@ def has_no_oov( def preprocess_kespeech(): src_dir = Path("data/manifests/KeSpeech") - output_dir = Path("data/fbank") + output_dir = Path("data/fbank/KeSpeech") output_dir.mkdir(exist_ok=True) # Note: By default, we preprocess all sub-parts.