File size: 946 Bytes
0a3b2c5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
#!/usr/bin/env bash
set -x
K2_ROOT=/ceph-hw/kangwei/code/k2_release/k2
ICEFALL=/star-kw/kangwei/code/icefall_wenetspeech
export PYTHONPATH=$K2_ROOT/k2/python:$PYTHONPATH
export PYTHONPATH=$K2_ROOT/build/lib:$PYTHONPATH
export PYTHONPATH=$ICEFALL:$PYTHONPATH
./zipformer/onnx_check.py \
--jit-filename zipformer/exp_L_context_2/jit_script.pt \
--onnx-encoder-filename zipformer/exp_L_context_2/encoder-epoch-12-avg-4.onnx \
--onnx-decoder-filename zipformer/exp_L_context_2/decoder-epoch-12-avg-4.onnx \
--onnx-joiner-filename zipformer/exp_L_context_2/joiner-epoch-12-avg-4.onnx
./zipformer/onnx_decode.py \
--exp-dir zipformer/exp_L_context_2 \
--encoder-model-filename zipformer/exp_L_context_2/encoder-epoch-12-avg-4.onnx \
--decoder-model-filename zipformer/exp_L_context_2/decoder-epoch-12-avg-4.onnx \
--joiner-model-filename zipformer/exp_L_context_2/joiner-epoch-12-avg-4.onnx \
--tokens data/lang_char/tokens.txt
|