Compare commits

...

4 Commits

Author SHA1 Message Date
majic31
5115a066c9
fix #2587: Resolve VAD multithreading issue (#2613)
* Fix crash in ASR tasks when lm is set to none in #2237

* fix #2587: Resolve VAD multithreading issue

* Update funasr/models/fsmn_vad_streaming/model.py

ok

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

---------

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2025-08-14 16:08:44 +08:00
Kyle He
82a07e2f6e
fix: funasr_onnx pass run_options to ort (#2632) 2025-08-14 16:07:54 +08:00
topjgc
68dcef510a
Update SECURITY.md (#2639) 2025-08-14 16:07:24 +08:00
topjgc
4675344c13
Create SECURITY.md (#2638) 2025-08-14 15:56:12 +08:00
3 changed files with 16 additions and 4 deletions

11
SECURITY.md Normal file
View File

@ -0,0 +1,11 @@
# Security Policy
## Reporting a Vulnerability
If you believe you have discovered a security vulnerability, please report it to us through the following portal:
👉[Report Security Issue](https://yundun.console.aliyun.com/?p=xznew#/taskmanagement/tasks/detail/153)
> **Note:** This channel is strictly for reporting security-related issues. Non-security vulnerabilities or general bug reports will not be addressed here.
We sincerely appreciate your responsible disclosure and your contribution to helping us keep our project secure.

View File

@ -652,10 +652,11 @@ class FsmnVADStreaming(nn.Module):
key: list = None,
tokenizer=None,
frontend=None,
cache: dict = {},
cache: dict = None,
**kwargs,
):
if cache is None:
cache = {}
if len(cache) == 0:
self.init_cache(cache, **kwargs)

View File

@ -221,10 +221,10 @@ class OrtInferSession:
RuntimeWarning,
)
def __call__(self, input_content: List[Union[np.ndarray, np.ndarray]]) -> np.ndarray:
def __call__(self, input_content: List[Union[np.ndarray, np.ndarray]], run_options = None) -> np.ndarray:
input_dict = dict(zip(self.get_input_names(), input_content))
try:
return self.session.run(self.get_output_names(), input_dict)
return self.session.run(self.get_output_names(), input_dict, run_options)
except Exception as e:
raise ONNXRuntimeError("ONNXRuntime inferece failed.") from e