From d33e775c2f9c57a69e38084205ca265b58d3e6bd Mon Sep 17 00:00:00 2001
From: zhifu gao <zhifu.gzf@alibaba-inc.com>
Date: 星期二, 18 四月 2023 12:35:51 +0800
Subject: [PATCH] Merge pull request #371 from alibaba-damo-academy/dev-sx-modelzoo

---
 funasr/bin/tp_inference_launch.py |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/funasr/bin/tp_inference_launch.py b/funasr/bin/tp_inference_launch.py
index 903e041..55debac 100644
--- a/funasr/bin/tp_inference_launch.py
+++ b/funasr/bin/tp_inference_launch.py
@@ -2,6 +2,9 @@
 # Copyright ESPnet (https://github.com/espnet/espnet). All Rights Reserved.
 #  Apache 2.0  (http://www.apache.org/licenses/LICENSE-2.0)
 
+import torch
+torch.set_num_threads(1)
+
 import argparse
 import logging
 import os
@@ -76,17 +79,17 @@
 
     group = parser.add_argument_group("The model configuration related")
     group.add_argument(
-        "--tp_train_config",
+        "--timestamp_infer_config",
         type=str,
         help="VAD infer configuration",
     )
     group.add_argument(
-        "--tp_model_file",
+        "--timestamp_model_file",
         type=str,
         help="VAD model parameter file",
     )
     group.add_argument(
-        "--tp_cmvn_file",
+        "--timestamp_cmvn_file",
         type=str,
         help="Global CMVN file",
     )

--
Gitblit v1.9.1