嘉渊
2023-04-24 6427c834dfd97b1f05c6659cdc7ccf010bf82fe1
funasr/runtime/python/utils/test_rtf.sh
@@ -11,7 +11,7 @@
model_name="damo/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-pytorch"
backend="onnx" # "torch"
quantize='true' # 'False'
tag=${model_name}/${backend}_${quantize}
tag=${model_name}/${backend}_quantize_${quantize}
!
logs_outputs_dir=${export_root}/logs/${tag}/split$nj
@@ -19,14 +19,14 @@
echo ${logs_outputs_dir}
if [ $stage == 0 ];then
if [ ${stage} -le 0 ];then
    python -m funasr.export.export_model --model-name ${model_name} --export-dir ${export_root} --type ${backend} --quantize --audio_in ${scp}
    python -m funasr.export.export_model --model-name ${model_name} --export-dir ${export_root} --type ${backend} --quantize ${quantize} --audio_in ${scp}
fi
if [ $stage -ge 1 ];then
if [ ${stage} -le 1 ];then
model_dir=${export_root}/${model_name}
split_scps=""