mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-12 19:42:19 +00:00
generate train-all-shuf for whisper fbank
This commit is contained in:
parent
76e0d59267
commit
eb685364df
@ -249,7 +249,7 @@ if [ $stage -le 7 ] && [ $stop_stage -ge 7 ]; then
|
|||||||
log "Stage 7: Prepare whisper fbank feature"
|
log "Stage 7: Prepare whisper fbank feature"
|
||||||
perturb_speed=1
|
perturb_speed=1
|
||||||
whisper_mel_bins=80
|
whisper_mel_bins=80
|
||||||
output_dir=data/fbank_whisper_${whisper_mel_bins}D
|
output_dir=data/fbank_whisper_${whisper_mel_bins}D_hdf5
|
||||||
if [ ! -f $output_dir/.librispeech.whisper.done ]; then
|
if [ ! -f $output_dir/.librispeech.whisper.done ]; then
|
||||||
mkdir -p $output_dir
|
mkdir -p $output_dir
|
||||||
./local/compute_fbank_librispeech.py \
|
./local/compute_fbank_librispeech.py \
|
||||||
@ -262,4 +262,10 @@ if [ $stage -le 7 ] && [ $stop_stage -ge 7 ]; then
|
|||||||
--output-dir $output_dir
|
--output-dir $output_dir
|
||||||
touch $output_dir/.librispeech.whisper.done
|
touch $output_dir/.librispeech.whisper.done
|
||||||
fi
|
fi
|
||||||
|
if [ ! -f ${output_dir}/librispeech_cuts_train-all-shuf.jsonl.gz ]; then
|
||||||
|
cat <(gunzip -c ${output_dir}/librispeech_cuts_train-clean-100.jsonl.gz) \
|
||||||
|
<(gunzip -c ${output_dir}/librispeech_cuts_train-clean-360.jsonl.gz) \
|
||||||
|
<(gunzip -c ${output_dir}/librispeech_cuts_train-other-500.jsonl.gz) | \
|
||||||
|
shuf | gzip -c > ${output_dir}/librispeech_cuts_train-all-shuf.jsonl.gz
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user