From 39efd2204c84b086dceac3dbb257425fc640a3ff Mon Sep 17 00:00:00 2001
From: Lizerui9926 <110582652+Lizerui9926@users.noreply.github.com>
Date: 星期一, 17 四月 2023 11:05:01 +0800
Subject: [PATCH] Merge pull request #364 from alibaba-damo-academy/dev_sx

---
 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