|
|
@ -1,18 +1,21 @@
|
|
|
|
#!/bin/bash
|
|
|
|
#!/bin/bash
|
|
|
|
set -x
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -e
|
|
|
|
|
|
|
|
|
|
|
|
. path.sh
|
|
|
|
. path.sh
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
nj=20
|
|
|
|
data=data
|
|
|
|
data=data
|
|
|
|
exp=exp
|
|
|
|
exp=exp
|
|
|
|
|
|
|
|
|
|
|
|
mkdir -p $exp
|
|
|
|
mkdir -p $exp
|
|
|
|
ckpt_dir=./data/model
|
|
|
|
ckpt_dir=./data/model
|
|
|
|
model_dir=$ckpt_dir/asr1_chunk_conformer_u2pp_wenetspeech_static_1.3.0.model/
|
|
|
|
model_dir=$ckpt_dir/asr1_chunk_conformer_u2pp_wenetspeech_static_1.3.0.model/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
utils/run.pl JOB=1:$nj $data/split${nj}/JOB/nnet.log \
|
|
|
|
u2_nnet_main \
|
|
|
|
u2_nnet_main \
|
|
|
|
--model_path=$model_dir/export.jit \
|
|
|
|
--model_path=$model_dir/export.jit \
|
|
|
|
--feature_rspecifier=ark,t:$exp/fbank.ark \
|
|
|
|
--vocab_path=$model_dir/unit.txt \
|
|
|
|
|
|
|
|
--feature_rspecifier=ark,t:${data}/split${nj}/JOB/fbank.ark \
|
|
|
|
--nnet_decoder_chunk=16 \
|
|
|
|
--nnet_decoder_chunk=16 \
|
|
|
|
--receptive_field_length=7 \
|
|
|
|
--receptive_field_length=7 \
|
|
|
|
--subsampling_rate=4 \
|
|
|
|
--subsampling_rate=4 \
|
|
|
@ -20,4 +23,3 @@ u2_nnet_main \
|
|
|
|
--nnet_encoder_outs_wspecifier=ark,t:$exp/encoder_outs.ark \
|
|
|
|
--nnet_encoder_outs_wspecifier=ark,t:$exp/encoder_outs.ark \
|
|
|
|
--nnet_prob_wspecifier=ark,t:$exp/logprobs.ark
|
|
|
|
--nnet_prob_wspecifier=ark,t:$exp/logprobs.ark
|
|
|
|
echo "u2 nnet decode."
|
|
|
|
echo "u2 nnet decode."
|
|
|
|
|
|
|
|
|
|
|
|