daniel-dona's picture
Upload folder using huggingface_hub
f718466 verified
raw
history blame contribute delete
750 Bytes
# simulated streaming decoding
export CUDA_VISIBLE_DEVICES="0"
for m in greedy_search modified_beam_search fast_beam_search; do
./zipformer/decode.py \
--epoch 30 \
--avg 8 \
--exp-dir zipformer/exp-causal/ \
--max-duration 600 \
--causal 1 \
--chunk-size 16 \
--left-context-frames 128 \
--decoding-method $m
done
# chunk-wise streaming decoding
export CUDA_VISIBLE_DEVICES="0"
for m in greedy_search modified_beam_search fast_beam_search; do
./zipformer/streaming_decode.py \
--epoch 30 \
--avg 8 \
--exp-dir zipformer/exp-causal/ \
--causal 1 \
--chunk-size 16 \
--left-context-frames 128 \
--num-decode-streams 1000 \
--decoding-method $m
done