Commit 7ae0ec76 authored by sunzhq2's avatar sunzhq2 Committed by xuxo
Browse files

update conformer

parent 60a2c57a
i=0 i=0
for i in 0 1 2 3 for i in 0
#for i in 0 1 2 7 #for i in 0 1 2 7
#while [ $i -le 7 ] #while [ $i -le 7 ]
do do
......
...@@ -128,7 +128,7 @@ use_streaming=false # Whether to use streaming decoding ...@@ -128,7 +128,7 @@ use_streaming=false # Whether to use streaming decoding
use_maskctc=false # Whether to use maskctc decoding use_maskctc=false # Whether to use maskctc decoding
batch_size=1 batch_size=24
inference_tag= # Suffix to the result dir for decoding. inference_tag= # Suffix to the result dir for decoding.
inference_config= # Config for decoding. inference_config= # Config for decoding.
inference_args= # Arguments for decoding, e.g., "--lm_weight 0.1". inference_args= # Arguments for decoding, e.g., "--lm_weight 0.1".
......
maxtime=`cat result_*.log |grep "^total_inf" |awk 'BEGIN{s=0}{if(s<$2) s=$2}END{print s}'`
#inftime=`cat result_*.log |grep "^total_inf" |awk '{s+=$2}END{print s, s/NR}'`
inffps=`cat result_*.log |grep "^avg_infer_fps" |awk '{s+=$2}END{print s, s/NR}'`
loadtime=`cat result_*.log |grep "^load_data_total" |awk 'BEGIN{s=0}{if(s<$2) s=$2}END{print s}'`
loadfps=`cat result_*.log |grep "^load_data_avg" |awk '{s+=$2}END{print s, s/NR}'`
echo "max infer time: $maxtime"
echo "Average infer fps: $inffps"
echo "max load time: $loadtime"
echo "Average load fps: $loadfps"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment