Commit a1177c9 1 parent d5da6ab commit a1177c9 Copy full SHA for a1177c9
File tree 3 files changed +47
-828
lines changed
egs/librispeech/ASR/zipformer
3 files changed +47
-828
lines changed Original file line number Diff line number Diff line change 98
98
99
99
rm -rf $repo
100
100
101
+ log " ==== Test icefall-asr-multi-zh-hans-zipformer-ctc-streaming-2023-11-05 ===="
102
+ repo_url=https://huggingface.co/zrjin/icefall-asr-multi-zh-hans-zipformer-ctc-streaming-2023-11-05/
103
+
104
+ log " Downloading pre-trained model from $repo_url "
105
+ git lfs install
106
+ git clone $repo_url
107
+ repo=$( basename $repo_url )
108
+
109
+
110
+ log " Display test files"
111
+ tree $repo /
112
+ ls -lh $repo /test_wavs/* .wav
113
+
114
+ pushd $repo /exp
115
+ ln -s epoch-20.pt epoch-99.pt
116
+ popd
117
+
118
+ ls -lh $repo /exp/* .pt
119
+
120
+
121
+ ./zipformer/pretrained.py \
122
+ --checkpoint $repo /exp/epoch-99.pt \
123
+ --tokens $repo /data/lang_bpe_2000/tokens.txt \
124
+ --use-ctc 1 \
125
+ --causal 1 \
126
+ --method greedy_search \
127
+ $repo /test_wavs/DEV_T0000000000.wav \
128
+ $repo /test_wavs/DEV_T0000000001.wav \
129
+ $repo /test_wavs/DEV_T0000000002.wav
130
+
131
+ for method in modified_beam_search fast_beam_search; do
132
+ log " $method "
133
+
134
+ ./zipformer/pretrained.py \
135
+ --method $method \
136
+ --beam-size 4 \
137
+ --use-ctc 1 \
138
+ --causal 1 \
139
+ --checkpoint $repo /exp/epoch-99.pt \
140
+ --tokens $repo /data/lang_bpe_2000/tokens.txt \
141
+ $repo /test_wavs/DEV_T0000000000.wav \
142
+ $repo /test_wavs/DEV_T0000000001.wav \
143
+ $repo /test_wavs/DEV_T0000000002.wav
144
+ done
145
+
146
+ rm -rf $repo
147
+
101
148
cd ../../../egs/multi_zh_en/ASR
102
149
log " ==== Test icefall-asr-zipformer-multi-zh-en-2023-11-22 ===="
103
150
repo_url=https://huggingface.co/zrjin/icefall-asr-zipformer-multi-zh-en-2023-11-22/
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments