mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-09-04 06:34:20 +00:00
Minor fixes.
This commit is contained in:
parent
764a3c3e0a
commit
0b1bb11000
47
.github/workflows/run-librispeech-2022-03-12.yml
vendored
47
.github/workflows/run-librispeech-2022-03-12.yml
vendored
@ -57,24 +57,41 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
grep -v '^#' ./requirements-ci.txt | xargs -n 1 -L 1 pip install
|
grep -v '^#' ./requirements-ci.txt | xargs -n 1 -L 1 pip install
|
||||||
|
|
||||||
|
|
||||||
- name: Cache pre-trained model
|
- name: Cache pre-trained model
|
||||||
id: cache-pretrained-model
|
id: my-cache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ~/tmp/icefall-asr-librispeech-pruned-transducer-stateless-2022-03-12
|
path: ~/tmp/
|
||||||
key: run-librispeech-2022-03-12
|
key: cache-tmp
|
||||||
|
|
||||||
|
- name: Install kaldifeat
|
||||||
- name: Download pre-trained model
|
if: steps.my-cache.outputs.cache-hit != 'true'
|
||||||
if: steps.cache-pretrained-model.outputs.cache-hit != 'true'
|
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get -qq install git-lfs tree sox
|
mkdir -p ~/tmp
|
||||||
mkdir tmp
|
cd ~/tmp
|
||||||
cd tmp
|
git clone https://github.com/csukuangfj/kaldifeat
|
||||||
|
cd kaldifeat
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake -DCMAKE_BUILD_TYPE=Release ..
|
||||||
|
make -j
|
||||||
|
|
||||||
|
- name: Download pre-trained model
|
||||||
|
if: steps.my-cache.outputs.cache-hit != 'true'
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
sudo apt-get -qq install git-lfs
|
||||||
|
mkdir -p ~/tmp
|
||||||
|
cd ~/tmp
|
||||||
git lfs install
|
git lfs install
|
||||||
git clone https://huggingface.co/csukuangfj/icefall-asr-librispeech-pruned-transducer-stateless-2022-03-12
|
git clone https://huggingface.co/csukuangfj/icefall-asr-librispeech-pruned-transducer-stateless-2022-03-12
|
||||||
cd ..
|
|
||||||
|
- name: Display test files
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
sudo apt-get -qq install tree sox
|
||||||
tree tmp
|
tree tmp
|
||||||
soxi tmp/icefall-asr-librispeech-pruned-transducer-stateless-2022-03-12/test_wavs/*.wav
|
soxi tmp/icefall-asr-librispeech-pruned-transducer-stateless-2022-03-12/test_wavs/*.wav
|
||||||
ls -lh tmp/icefall-asr-librispeech-pruned-transducer-stateless-2022-03-12/test_wavs/*.wav
|
ls -lh tmp/icefall-asr-librispeech-pruned-transducer-stateless-2022-03-12/test_wavs/*.wav
|
||||||
@ -83,6 +100,8 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
export PYTHONPATH=$PWD:PYTHONPATH
|
export PYTHONPATH=$PWD:PYTHONPATH
|
||||||
|
export PYTHONPATH=~/tmp/kaldifeat/kaldifeat/python:PYTHONPATH
|
||||||
|
export PYTHONPATH=~/tmp/kaldifeat/build/lib:PYTHONPATH
|
||||||
dir=~/tmp/icefall-asr-librispeech-pruned-transducer-stateless-2022-03-12
|
dir=~/tmp/icefall-asr-librispeech-pruned-transducer-stateless-2022-03-12
|
||||||
cd egs/librispeech/ASR
|
cd egs/librispeech/ASR
|
||||||
./pruned_transducer_stateless/pretrained.py \
|
./pruned_transducer_stateless/pretrained.py \
|
||||||
@ -98,6 +117,8 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
export PYTHONPATH=$PWD:PYTHONPATH
|
export PYTHONPATH=$PWD:PYTHONPATH
|
||||||
|
export PYTHONPATH=~/tmp/kaldifeat/kaldifeat/python:PYTHONPATH
|
||||||
|
export PYTHONPATH=~/tmp/kaldifeat/build/lib:PYTHONPATH
|
||||||
dir=~/tmp/icefall-asr-librispeech-pruned-transducer-stateless-2022-03-12
|
dir=~/tmp/icefall-asr-librispeech-pruned-transducer-stateless-2022-03-12
|
||||||
cd egs/librispeech/ASR
|
cd egs/librispeech/ASR
|
||||||
./pruned_transducer_stateless/pretrained.py \
|
./pruned_transducer_stateless/pretrained.py \
|
||||||
@ -113,6 +134,8 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
export PYTHONPATH=$PWD:PYTHONPATH
|
export PYTHONPATH=$PWD:PYTHONPATH
|
||||||
|
export PYTHONPATH=~/tmp/kaldifeat/kaldifeat/python:PYTHONPATH
|
||||||
|
export PYTHONPATH=~/tmp/kaldifeat/build/lib:PYTHONPATH
|
||||||
dir=~/tmp/icefall-asr-librispeech-pruned-transducer-stateless-2022-03-12
|
dir=~/tmp/icefall-asr-librispeech-pruned-transducer-stateless-2022-03-12
|
||||||
cd egs/librispeech/ASR
|
cd egs/librispeech/ASR
|
||||||
./pruned_transducer_stateless/pretrained.py \
|
./pruned_transducer_stateless/pretrained.py \
|
||||||
@ -128,6 +151,8 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
export PYTHONPATH=$PWD:$PYTHONPATH
|
export PYTHONPATH=$PWD:$PYTHONPATH
|
||||||
|
export PYTHONPATH=~/tmp/kaldifeat/kaldifeat/python:PYTHONPATH
|
||||||
|
export PYTHONPATH=~/tmp/kaldifeat/build/lib:PYTHONPATH
|
||||||
dir=~/tmp/icefall-asr-librispeech-pruned-transducer-stateless-2022-03-12
|
dir=~/tmp/icefall-asr-librispeech-pruned-transducer-stateless-2022-03-12
|
||||||
cd egs/librispeech/ASR
|
cd egs/librispeech/ASR
|
||||||
./pruned_transducer_stateless/pretrained.py \
|
./pruned_transducer_stateless/pretrained.py \
|
||||||
@ -143,6 +168,8 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
export PYTHONPATH=$PWD:$PYTHONPATH
|
export PYTHONPATH=$PWD:$PYTHONPATH
|
||||||
|
export PYTHONPATH=~/tmp/kaldifeat/kaldifeat/python:PYTHONPATH
|
||||||
|
export PYTHONPATH=~/tmp/kaldifeat/build/lib:PYTHONPATH
|
||||||
dir=~/tmp/icefall-asr-librispeech-pruned-transducer-stateless-2022-03-12
|
dir=~/tmp/icefall-asr-librispeech-pruned-transducer-stateless-2022-03-12
|
||||||
cd egs/librispeech/ASR
|
cd egs/librispeech/ASR
|
||||||
./pruned_transducer_stateless/pretrained.py \
|
./pruned_transducer_stateless/pretrained.py \
|
||||||
|
@ -14,7 +14,6 @@ graphviz==0.19.1
|
|||||||
-f https://k2-fsa.org/nightly/ k2==1.9.dev20211101+cpu.torch1.10.0
|
-f https://k2-fsa.org/nightly/ k2==1.9.dev20211101+cpu.torch1.10.0
|
||||||
|
|
||||||
lhotse==0.12.0
|
lhotse==0.12.0
|
||||||
kaldifeat==1.12
|
|
||||||
kaldilm==1.11
|
kaldilm==1.11
|
||||||
kaldialign==0.2
|
kaldialign==0.2
|
||||||
sentencepiece==0.1.96
|
sentencepiece==0.1.96
|
||||||
|
Loading…
x
Reference in New Issue
Block a user