From 6ca0d1f54c8b698e3315edab8aa9ba7227d7c9e7 Mon Sep 17 00:00:00 2001
From: wanchen.swc <wanchen.swc@alibaba-inc.com>
Date: 星期四, 16 三月 2023 18:53:57 +0800
Subject: [PATCH] [Quantization] run calib without grad
---
funasr/bin/asr_inference_paraformer.py | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/funasr/bin/asr_inference_paraformer.py b/funasr/bin/asr_inference_paraformer.py
index 487f750..b807a34 100644
--- a/funasr/bin/asr_inference_paraformer.py
+++ b/funasr/bin/asr_inference_paraformer.py
@@ -660,11 +660,9 @@
hotword_list_or_file = None
if param_dict is not None:
hotword_list_or_file = param_dict.get('hotword')
-
if 'hotword' in kwargs:
hotword_list_or_file = kwargs['hotword']
-
- if speech2text.hotword_list is None:
+ if hotword_list_or_file is not None or 'hotword' in kwargs:
speech2text.hotword_list = speech2text.generate_hotwords_list(hotword_list_or_file)
# 3. Build data-iterator
--
Gitblit v1.9.1