Skip to content

Commit a1177c9

Browse files
committed
minor updates
1 parent d5da6ab commit a1177c9

File tree

3 files changed

+47
-828
lines changed

3 files changed

+47
-828
lines changed

.github/scripts/run-multi-corpora-zipformer.sh

+47
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,53 @@ done
9898

9999
rm -rf $repo
100100

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+
101148
cd ../../../egs/multi_zh_en/ASR
102149
log "==== Test icefall-asr-zipformer-multi-zh-en-2023-11-22 ===="
103150
repo_url=https://huggingface.co/zrjin/icefall-asr-zipformer-multi-zh-en-2023-11-22/

egs/librispeech/ASR/zipformer/ctc_decode_stream.py

-129
This file was deleted.

0 commit comments

Comments
 (0)