mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-09 10:02:22 +00:00
fix prepare.sh
This commit is contained in:
parent
c4432d1e35
commit
58e0016925
@ -7,6 +7,9 @@ set -eou pipefail
|
||||
|
||||
stage=0
|
||||
stop_stage=0
|
||||
|
||||
. shared/parse_options.sh || exit 1
|
||||
|
||||
# All files generated by this script are saved in "data".
|
||||
# You can safely remove "data" and rerun this script to regenerate it.
|
||||
mkdir -p data
|
||||
@ -23,7 +26,7 @@ if [ $stage -le 0 ] && [ $stop_stage -ge 0 ]; then
|
||||
|
||||
# pip install huggingface_hub['cli']
|
||||
# for aishell 1
|
||||
huggingface-cli download --local-dir data yuekai/aishell_whisper_fbank_lhotse
|
||||
huggingface-cli download --repo-type dataset --local-dir data yuekai/aishell_whisper_fbank_lhotse
|
||||
|
||||
fi
|
||||
|
||||
@ -31,9 +34,9 @@ if [ $stage -le 1 ] && [ $stop_stage -ge 1 ]; then
|
||||
log "stage 1: Download whisper-large-v2 multi-hans-zh fbank feature from huggingface"
|
||||
|
||||
# for multi-hans-zh
|
||||
huggingface-cli download --local-dir data/fbank yuekai/wenetspeech_whisper_fbank_lhotse
|
||||
huggingface-cli download --local-dir data/fbank yuekai/multi_hans_zh_whisper_fbank_lhotse
|
||||
huggingface-cli download --local-dir data/fbank yuekai/alimeeting_aishell4_training_whisper_fbank_lhotse
|
||||
huggingface-cli download --repo-type dataset --local-dir data/fbank yuekai/wenetspeech_whisper_fbank_lhotse
|
||||
huggingface-cli download --repo-type dataset --local-dir data/fbank yuekai/multi_hans_zh_whisper_fbank_lhotse
|
||||
huggingface-cli download --repo-type dataset --local-dir data/fbank yuekai/alimeeting_aishell4_training_whisper_fbank_lhotse
|
||||
fi
|
||||
|
||||
if [ $stage -le 2 ] && [ $stop_stage -ge 2 ]; then
|
||||
@ -41,6 +44,6 @@ if [ $stage -le 2 ] && [ $stop_stage -ge 2 ]; then
|
||||
|
||||
# for speechio test sets
|
||||
mkdir data_speechio
|
||||
huggingface-cli download --local-dir data_speechio yuekai/icefall_asr_speechio
|
||||
huggingface-cli download --repo-type model --local-dir data_speechio yuekai/icefall_asr_speechio
|
||||
mv data_speechio/fbank/* data/fbank
|
||||
fi
|
||||
|
1
egs/speech_llm/ASR_LLM/shared
Symbolic link
1
egs/speech_llm/ASR_LLM/shared
Symbolic link
@ -0,0 +1 @@
|
||||
../../../icefall/shared
|
Loading…
x
Reference in New Issue
Block a user