[debug] raise remind when git-lfs not available

This commit is contained in:
boji123 2022-07-28 15:48:17 +08:00
parent f26b62ac00
commit 1ee36f28e5

View File

@ -48,6 +48,8 @@ if [ $stage -le -1 ] && [ $stop_stage -ge -1 ]; then
log "stage -1: Download LM" log "stage -1: Download LM"
# We assume that you have installed the git-lfs, if not, you could install it # We assume that you have installed the git-lfs, if not, you could install it
# using: `sudo apt-get install git-lfs && git-lfs install` # using: `sudo apt-get install git-lfs && git-lfs install`
git lfs 1>/dev/null 2>&1 || (echo "please install git-lfs" && exit 1)
if [ ! -f $dl_dir/lm/3-gram.unpruned.arpa ]; then if [ ! -f $dl_dir/lm/3-gram.unpruned.arpa ]; then
git clone https://huggingface.co/pkufool/aishell_lm $dl_dir/lm git clone https://huggingface.co/pkufool/aishell_lm $dl_dir/lm
fi fi