From 2e36e738ca39afc8d02f3d11013bd12f937cc874 Mon Sep 17 00:00:00 2001
From: zhaomingwork <61895407+zhaomingwork@users.noreply.github.com>
Date: 星期三, 08 十一月 2023 09:22:06 +0800
Subject: [PATCH] fix bug for h5 hotwords (#1067)
---
funasr/bin/tp_infer.py | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/funasr/bin/tp_infer.py b/funasr/bin/tp_infer.py
index 213c018..ede579c 100644
--- a/funasr/bin/tp_infer.py
+++ b/funasr/bin/tp_infer.py
@@ -9,7 +9,6 @@
import numpy as np
import torch
-from typeguard import check_argument_types
from funasr.build_utils.build_model_from_file import build_model_from_file
from funasr.models.frontend.wav_frontend import WavFrontend
from funasr.text.token_id_converter import TokenIDConverter
@@ -26,7 +25,6 @@
dtype: str = "float32",
**kwargs,
):
- assert check_argument_types()
# 1. Build ASR model
tp_model, tp_train_args = build_model_from_file(
timestamp_infer_config, timestamp_model_file, cmvn_file=None, device=device, task_name="asr", mode="tp"
@@ -64,7 +62,6 @@
speech_lengths: Union[torch.Tensor, np.ndarray] = None,
text_lengths: Union[torch.Tensor, np.ndarray] = None
):
- assert check_argument_types()
# Input as audio signal
if isinstance(speech, np.ndarray):
--
Gitblit v1.9.1