From cb4bd0e6dee4d8bae49351c1ac3b099bcdd72acb Mon Sep 17 00:00:00 2001
From: 仁迷 <haoneng.lhn@alibaba-inc.com>
Date: 星期五, 17 三月 2023 22:14:21 +0800
Subject: [PATCH] add paraformer streaming recipe

---
 funasr/runtime/python/utils/test_rtf.sh |   10 +++-------
 1 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/funasr/runtime/python/utils/test_rtf.sh b/funasr/runtime/python/utils/test_rtf.sh
index 8ac2143..74b5c06 100644
--- a/funasr/runtime/python/utils/test_rtf.sh
+++ b/funasr/runtime/python/utils/test_rtf.sh
@@ -10,8 +10,8 @@
 #:<<!
 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}
+quantize='true' # 'False'
+tag=${model_name}/${backend}_quantize_${quantize}
 !
 
 logs_outputs_dir=${export_root}/logs/${tag}/split$nj
@@ -21,11 +21,7 @@
 
 if [ $stage == 0 ];then
 
-  if [ $quantize == 'True' ];then
-    python -m funasr.export.export_model --model-name ${model_name} --export-dir ${export_root} --type ${backend} --quantize --audio_in ${scp}
-  else
-    python -m funasr.export.export_model --model-name ${model_name} --export-dir ${export_root} --type ${backend}
-  fi
+    python -m funasr.export.export_model --model-name ${model_name} --export-dir ${export_root} --type ${backend} --quantize ${quantize} --audio_in ${scp}
 
 fi
 

--
Gitblit v1.9.1