-
Notifications
You must be signed in to change notification settings - Fork 716
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
【BUG】并发请求时 VAD报错:IndexError: list index out of range #865
Comments
zZer0o
changed the title
并发请求时 VAD报错:IndexError: list index out of range
【BUG】并发请求时 VAD报错:IndexError: list index out of range
Aug 17, 2023
The Python version of VAD (Voice Activity Detection) does not support concurrent requests. |
If you want to use VAD (Voice Activity Detection) concurrently, you can refer to the C++ runtime, which supports concurrent VAD processing. |
有什么解决方案嘛?我是用fastapi来部署服务的,也是并发提示错误 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
版本信息:
funasr 0.7.4
torch 1.11.0+cu113
modelscope 1.7.1
错误信息:
CRITICAL: 08-17 03:17:59: paraformer_large_long_audio.py:152 * 139792295642880 Traceback (most recent call last):
File "./processor/paraformer_large_long_audio/paraformer_large_long_audio.py", line 133, in process
infer_result = self.inference_pipeline(new_audio_file)
File "/home/work/output/models/python3_pure/lib/python3.7/site-packages/modelscope/pipelines/audio/asr_inference_pipeline.py", line 251, in call
output = self.forward(output, **kwargs)
File "/home/work/output/models/python3_pure/lib/python3.7/site-packages/modelscope/pipelines/audio/asr_inference_pipeline.py", line 500, in forward
inputs['asr_result'] = self.run_inference(self.cmd, **kwargs)
File "/home/work/output/models/python3_pure/lib/python3.7/site-packages/modelscope/pipelines/audio/asr_inference_pipeline.py", line 578, in run_inference
cmd['param_dict'], **kwargs)
File "/home/work/output/models/python3_pure/lib/python3.7/site-packages/funasr/bin/asr_inference_launch.py", line 612, in _forward
vad_results = speech2vadsegment(**batch)
File "/home/work/output/models/python3_pure/lib/python3.7/site-packages/torch/autograd/grad_mode.py", line 27, in decorate_context
return func(*args, **kwargs)
File "/home/work/output/models/python3_pure/lib/python3.7/site-packages/funasr/bin/vad_infer.py", line 110, in call
segments_part, in_cache = self.vad_model(**batch)
File "/home/work/output/models/python3_pure/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1110, in _call_impl
return forward_call(*input, **kwargs)
File "/home/work/output/models/python3_pure/lib/python3.7/site-packages/funasr/models/e2e_vad.py", line 491, in forward
self.DetectCommonFrames()
File "/home/work/output/models/python3_pure/lib/python3.7/site-packages/funasr/models/e2e_vad.py", line 557, in DetectCommonFrames
frame_state = self.GetFrameState(self.frm_cnt - 1 - i - self.last_drop_frames)
File "/home/work/output/models/python3_pure/lib/python3.7/site-packages/funasr/models/e2e_vad.py", line 440, in GetFrameState
cur_decibel = self.decibel[t]
IndexError: list index out of range
The text was updated successfully, but these errors were encountered: