Views
No views yet
sudo apt-get install git-lfs
git clone https://huggingface.co/csukuangfj/icefall-asr-librispeech-transducer-bpe-500-2021-12-17
cd icefall-asr-librispeech-transducer-bpe-500-2021-12-17
git lfs pullgit lfs pull. Otherwise, you will be SAD later.cb04c8a7509425ab45fae888b0ca71bbbd23f0de.git clone https://github.com/k2-fsa/icefall
cd icefall
git checkout cb04c8a7509425ab45fae888b0ca71bbbd23f0deicefall.cd egs/librispeech/ASR/
./prepare.sh
export CUDA_VISIBLE_DEVICES="0,1,2,3"
./transducer/train.py \
--world-size 4 \
--num-epochs 30 \
--start-epoch 0 \
--exp-dir transducer/exp-lr-2.5-full \
--full-libri 1 \
--max-duration 250 \
--lr-factor 2.5epoch=26
avg=12
./transducer/decode.py \
--epoch $epoch \
--avg $avg \
--exp-dir transducer/exp-lr-2.5-full \
--bpe-model ./data/lang_bpe_500/bpe.model \
--max-duration 100| test-clean | test-other | |
|---|---|---|
| WER | 3.16 | 7.71 |
preprained.ptexp/pretrained.pt is generated by the following command:./transducer/export.py \
--epoch 26 \
--avg 12 \
--bpe-model data/lang_bpe_500/bpe.model \
--exp-dir transducer/exp-lr-2.5-fullpre-trained.pt to compute the WER for test-clean and test-other,
just do the following:cp icefall-asr-librispeech-transducer-bpe-500-2021-12-17/exp/pretrained.pt \
/path/to/icefall/egs/librispeech/ASR/transducer/exp/epoch-999.pt--epoch 999 --avg 1 to transducer/decode.py.