From f7918e0eb8c9d046a14600fa6d1ec7be9dcefee6 Mon Sep 17 00:00:00 2001
From: lyblsgo <lyblsgo@163.com>
Date: 星期五, 21 四月 2023 21:25:43 +0800
Subject: [PATCH] fix CMakeLists.txt
---
funasr/bin/diar_inference_launch.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/funasr/bin/diar_inference_launch.py b/funasr/bin/diar_inference_launch.py
index 70bb947..83436e8 100755
--- a/funasr/bin/diar_inference_launch.py
+++ b/funasr/bin/diar_inference_launch.py
@@ -2,6 +2,9 @@
# Copyright FunASR (https://github.com/alibaba-damo-academy/FunASR). All Rights Reserved.
# MIT License (https://opensource.org/licenses/MIT)
+import torch
+torch.set_num_threads(1)
+
import argparse
import logging
import os
@@ -133,7 +136,7 @@
param_dict = {
"extract_profile": True,
"sv_train_config": "sv.yaml",
- "sv_model_file": "sv.pth",
+ "sv_model_file": "sv.pb",
}
if "param_dict" in kwargs and kwargs["param_dict"] is not None:
for key in param_dict:
--
Gitblit v1.9.1