From f84270c93528f4b77b99ada9ac0c9f7fb231d6a4 Mon Sep 17 00:00:00 2001 From: KIM7AZEN <1556709171@qq.com> Date: Wed, 16 Oct 2024 17:19:24 +0800 Subject: [PATCH] fix the fixed num_splits (#1772) --- egs/wenetspeech/ASR/prepare.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/egs/wenetspeech/ASR/prepare.sh b/egs/wenetspeech/ASR/prepare.sh index 45912985bf..74f2137079 100755 --- a/egs/wenetspeech/ASR/prepare.sh +++ b/egs/wenetspeech/ASR/prepare.sh @@ -161,7 +161,7 @@ fi if [ $stage -le 11 ] && [ $stop_stage -ge 11 ]; then log "Stage 11: Combine features for S" if [ ! -f data/fbank/cuts_S.jsonl.gz ]; then - pieces=$(find data/fbank/S_split_1000 -name "cuts_S.*.jsonl.gz") + pieces=$(find data/fbank/S_split_${num_splits} -name "cuts_S.*.jsonl.gz") lhotse combine $pieces data/fbank/cuts_S.jsonl.gz fi fi @@ -169,7 +169,7 @@ fi if [ $stage -le 12 ] && [ $stop_stage -ge 12 ]; then log "Stage 12: Combine features for M" if [ ! -f data/fbank/cuts_M.jsonl.gz ]; then - pieces=$(find data/fbank/M_split_1000 -name "cuts_M.*.jsonl.gz") + pieces=$(find data/fbank/M_split_${num_splits} -name "cuts_M.*.jsonl.gz") lhotse combine $pieces data/fbank/cuts_M.jsonl.gz fi fi @@ -177,7 +177,7 @@ fi if [ $stage -le 13 ] && [ $stop_stage -ge 13 ]; then log "Stage 13: Combine features for L" if [ ! -f data/fbank/cuts_L.jsonl.gz ]; then - pieces=$(find data/fbank/L_split_1000 -name "cuts_L.*.jsonl.gz") + pieces=$(find data/fbank/L_split_${num_splits} -name "cuts_L.*.jsonl.gz") lhotse combine $pieces data/fbank/cuts_L.jsonl.gz fi fi