From 62c9dd9703857c1d51ee2f0fc863e14671a69857 Mon Sep 17 00:00:00 2001 From: Peter Ross Date: Mon, 8 May 2023 21:07:40 +1000 Subject: [PATCH] make egs/timit work according to the documentation (#1044) * prepare.sh: restore working directory after git lfs pull * set execute permisons on python scripts called by prepare.sh --- egs/timit/ASR/local/compile_hlg.py | 0 egs/timit/ASR/local/compute_fbank_timit.py | 0 egs/timit/ASR/local/prepare_lang.py | 0 egs/timit/ASR/local/prepare_lexicon.py | 0 egs/timit/ASR/prepare.sh | 4 +++- 5 files changed, 3 insertions(+), 1 deletion(-) mode change 100644 => 100755 egs/timit/ASR/local/compile_hlg.py mode change 100644 => 100755 egs/timit/ASR/local/compute_fbank_timit.py mode change 100644 => 100755 egs/timit/ASR/local/prepare_lang.py mode change 100644 => 100755 egs/timit/ASR/local/prepare_lexicon.py diff --git a/egs/timit/ASR/local/compile_hlg.py b/egs/timit/ASR/local/compile_hlg.py old mode 100644 new mode 100755 diff --git a/egs/timit/ASR/local/compute_fbank_timit.py b/egs/timit/ASR/local/compute_fbank_timit.py old mode 100644 new mode 100755 diff --git a/egs/timit/ASR/local/prepare_lang.py b/egs/timit/ASR/local/prepare_lang.py old mode 100644 new mode 100755 diff --git a/egs/timit/ASR/local/prepare_lexicon.py b/egs/timit/ASR/local/prepare_lexicon.py old mode 100644 new mode 100755 diff --git a/egs/timit/ASR/prepare.sh b/egs/timit/ASR/prepare.sh index 148a9f51b..f25fe5add 100644 --- a/egs/timit/ASR/prepare.sh +++ b/egs/timit/ASR/prepare.sh @@ -59,7 +59,9 @@ if [ $stage -le -1 ] && [ $stop_stage -ge -1 ]; then # using: `sudo apt-get install git-lfs && git-lfs install` [ ! -e $dl_dir/lm ] && mkdir -p $dl_dir/lm git clone https://huggingface.co/luomingshuang/timit_lm $dl_dir/lm - cd $dl_dir/lm && git lfs pull + pushd $dl_dir/lm + git lfs pull + popd fi if [ $stage -le 0 ] && [ $stop_stage -ge 0 ]; then