Skip to content

Commit

Permalink
fix the fixed num_splits (#1772)
Browse files Browse the repository at this point in the history
  • Loading branch information
KIM7AZEN authored Oct 16, 2024
1 parent 2653df5 commit f84270c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions egs/wenetspeech/ASR/prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -161,23 +161,23 @@ 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

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

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
Expand Down

0 comments on commit f84270c

Please sign in to comment.