Views
No views yet
["w", "ɑ", "ʃ", "i", "ɑ"]. Therefore, the model's vocabulary contains the different IPA phonemes found in gruut.1for m in greedy_search fast_beam_search modified_beam_search; do
2 ./zipformer/decode.py \
3 --epoch 40 \
4 --avg 7 \
5 --causal 1 \
6 --num-encoder-layers 2,2,2,2,2,2 \
7 --feedforward-dim 512,768,768,768,768,768 \
8 --encoder-dim 192,256,256,256,256,256 \
9 --encoder-unmasked-dim 192,192,192,192,192,192 \
10 --chunk-size 32 \
11 --left-context-frames 128 \
12 --exp-dir zipformer/exp-causal \
13 --use-transducer True --use-ctc True \
14 --decoding-method $m
15done1./zipformer/ctc_decode.py \
2 --epoch 40 \
3 --avg 7 \
4 --causal 1 \
5 --num-encoder-layers 2,2,2,2,2,2 \
6 --feedforward-dim 512,768,768,768,768,768 \
7 --encoder-dim 192,256,256,256,256,256 \
8 --encoder-unmasked-dim 192,192,192,192,192,192 \
9 --chunk-size 32 \
10 --left-context-frames 128 \
11 --exp-dir zipformer/exp-causal \
12 --decoding-method ctc-decoding \
13 --use-transducer True --use-ctc True| Decoding | Common Voice 16.1 | FLEURS | Bookbot |
|---|---|---|---|
| Greedy Search | 7.64% | 6.74% | 1.98% |
| Modified Beam Search | 7.77% | 6.69% | 2.26% |
| Fast Beam Search | 8.18% | 6.83% | 2.84% |
| CTC Greedy Search | 7.65% | 6.66% | 4.26% |
1for m in greedy_search fast_beam_search modified_beam_search; do
2 ./zipformer/streaming_decode.py \
3 --epoch 40 \
4 --avg 7 \
5 --causal 1 \
6 --num-encoder-layers 2,2,2,2,2,2 \
7 --feedforward-dim 512,768,768,768,768,768 \
8 --encoder-dim 192,256,256,256,256,256 \
9 --encoder-unmasked-dim 192,192,192,192,192,192 \
10 --chunk-size 32 \
11 --left-context-frames 128 \
12 --exp-dir zipformer/exp-causal \
13 --use-transducer True --use-ctc True \
14 --decoding-method $m \
15 --num-decode-streams 1000
16done| Decoding | Common Voice 16.1 | FLEURS | Bookbot |
|---|---|---|---|
| Greedy Search | 7.68% | 6.71% | 2.12% |
| Modified Beam Search | 7.52% | 6.64% | 2.07% |
| Fast Beam Search | 8.2% | 6.76% | 2.88% |
1cd egs/bookbot_sw/ASR
2mkdir tmp
3cd tmp
4git lfs install
5git clone https://huggingface.co/bookbot/zipformer-streaming-robust-sw-v4/1./zipformer/jit_pretrained_streaming.py \
2 --nn-model-filename ./tmp/zipformer-streaming-robust-sw-v4/exp-causal/jit_script_chunk_32_left_128.pt \
3 --tokens ./tmp/zipformer-streaming-robust-sw-v4/data/lang_phone/tokens.txt \
4 ./tmp/zipformer-streaming-robust-sw-v4/test_waves/sample1.wav2024-10-28 13:54:44,964 INFO [jit_pretrained_streaming.py:184] device: cuda:0
2024-10-28 13:54:45,325 INFO [jit_pretrained_streaming.py:197] Constructing Fbank computer
2024-10-28 13:54:45,325 INFO [jit_pretrained_streaming.py:200] Reading sound files: ./tmp/zipformer-streaming-robust-sw-v4/test_waves/sample1.wav
2024-10-28 13:54:45,353 INFO [jit_pretrained_streaming.py:205] torch.Size([125568])
2024-10-28 13:54:45,353 INFO [jit_pretrained_streaming.py:207] Decoding started
2024-10-28 13:54:45,353 INFO [jit_pretrained_streaming.py:212] chunk_length: 64
2024-10-28 13:54:45,353 INFO [jit_pretrained_streaming.py:213] T: 77
2024-10-28 13:54:45,364 INFO [jit_pretrained_streaming.py:229] 0/130368
2024-10-28 13:54:45,366 INFO [jit_pretrained_streaming.py:229] 4000/130368
2024-10-28 13:54:45,367 INFO [jit_pretrained_streaming.py:229] 8000/130368
2024-10-28 13:54:45,367 INFO [jit_pretrained_streaming.py:229] 12000/130368
2024-10-28 13:54:45,535 INFO [jit_pretrained_streaming.py:229] 16000/130368
2024-10-28 13:54:45,536 INFO [jit_pretrained_streaming.py:229] 20000/130368
2024-10-28 13:54:45,545 INFO [jit_pretrained_streaming.py:229] 24000/130368
2024-10-28 13:54:45,546 INFO [jit_pretrained_streaming.py:229] 28000/130368
2024-10-28 13:54:45,547 INFO [jit_pretrained_streaming.py:229] 32000/130368
2024-10-28 13:54:45,556 INFO [jit_pretrained_streaming.py:229] 36000/130368
2024-10-28 13:54:45,557 INFO [jit_pretrained_streaming.py:229] 40000/130368
2024-10-28 13:54:45,566 INFO [jit_pretrained_streaming.py:229] 44000/130368
2024-10-28 13:54:45,567 INFO [jit_pretrained_streaming.py:229] 48000/130368
2024-10-28 13:54:45,567 INFO [jit_pretrained_streaming.py:229] 52000/130368
2024-10-28 13:54:45,576 INFO [jit_pretrained_streaming.py:229] 56000/130368
2024-10-28 13:54:45,577 INFO [jit_pretrained_streaming.py:229] 60000/130368
2024-10-28 13:54:45,587 INFO [jit_pretrained_streaming.py:229] 64000/130368
2024-10-28 13:54:45,587 INFO [jit_pretrained_streaming.py:229] 68000/130368
2024-10-28 13:54:45,588 INFO [jit_pretrained_streaming.py:229] 72000/130368
2024-10-28 13:54:45,597 INFO [jit_pretrained_streaming.py:229] 76000/130368
2024-10-28 13:54:45,598 INFO [jit_pretrained_streaming.py:229] 80000/130368
2024-10-28 13:54:45,599 INFO [jit_pretrained_streaming.py:229] 84000/130368
2024-10-28 13:54:45,608 INFO [jit_pretrained_streaming.py:229] 88000/130368
2024-10-28 13:54:45,609 INFO [jit_pretrained_streaming.py:229] 92000/130368
2024-10-28 13:54:45,618 INFO [jit_pretrained_streaming.py:229] 96000/130368
2024-10-28 13:54:45,619 INFO [jit_pretrained_streaming.py:229] 100000/130368
2024-10-28 13:54:45,619 INFO [jit_pretrained_streaming.py:229] 104000/130368
2024-10-28 13:54:45,628 INFO [jit_pretrained_streaming.py:229] 108000/130368
2024-10-28 13:54:45,629 INFO [jit_pretrained_streaming.py:229] 112000/130368
2024-10-28 13:54:45,638 INFO [jit_pretrained_streaming.py:229] 116000/130368
2024-10-28 13:54:45,639 INFO [jit_pretrained_streaming.py:229] 120000/130368
2024-10-28 13:54:45,640 INFO [jit_pretrained_streaming.py:229] 124000/130368
2024-10-28 13:54:45,649 INFO [jit_pretrained_streaming.py:229] 128000/130368
2024-10-28 13:54:45,649 INFO [jit_pretrained_streaming.py:259] ./tmp/zipformer-streaming-robust-sw-v4/test_waves/sample1.wav
2024-10-28 13:54:45,649 INFO [jit_pretrained_streaming.py:260] wɑʃiɑɑᵐɓɑɔwɑnɑiʃihɑsɑkɑtikɑɛnɛɔlɑmɑʃɑɾikikɑtikɑufɑlmɛhuɔwɛnjɛutɑʄiɾiwɑmɑfutɑ
2024-10-28 13:54:45,649 INFO [jit_pretrained_streaming.py:262] Decoding Done1git clone https://github.com/bookbot-hive/icefall
2cd icefall
3export PYTHONPATH=`pwd`:$PYTHONPATH1cd egs/bookbot_sw/ASR
2./prepare.sh1export CUDA_VISIBLE_DEVICES="0,1"
2./zipformer/train.py \
3 --world-size 2 \
4 --num-epochs 40 \
5 --use-fp16 1 \
6 --exp-dir zipformer/exp-causal \
7 --causal 1 \
8 --num-encoder-layers 2,2,2,2,2,2 \
9 --feedforward-dim 512,768,768,768,768,768 \
10 --encoder-dim 192,256,256,256,256,256 \
11 --encoder-unmasked-dim 192,192,192,192,192,192 \
12 --base-lr 0.04 \
13 --max-duration 400 \
14 --use-transducer True --use-ctc True