Skip to content
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

运行识别时出现KeyError: 'sentence_info' #96

Open
KakaWan opened this issue Jul 29, 2024 · 7 comments
Open

运行识别时出现KeyError: 'sentence_info' #96

KakaWan opened this issue Jul 29, 2024 · 7 comments

Comments

@KakaWan
Copy link

KakaWan commented Jul 29, 2024

rtf_avg: 0.134: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:07<00:00, 7.08s/it]
0%| | 0/1 [00:00<?, ?it/s]
Traceback (most recent call last):
File "F:\Pro\FunClip\venv\Lib\site-packages\gradio\queueing.py", line 536, in process_events
response = await route_utils.call_process_api(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\Pro\FunClip\venv\Lib\site-packages\gradio\route_utils.py", line 276, in call_process_api
output = await app.get_blocks().process_api(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\Pro\FunClip\venv\Lib\site-packages\gradio\blocks.py", line 1923, in process_api
result = await self.call_function(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\Pro\FunClip\venv\Lib\site-packages\gradio\blocks.py", line 1508, in call_function
prediction = await anyio.to_thread.run_sync( # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\Pro\FunClip\venv\Lib\site-packages\anyio\to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\Pro\FunClip\venv\Lib\site-packages\anyio_backends_asyncio.py", line 2177, in run_sync_in_worker_thread
return await future
^^^^^^^^^^^^
File "F:\Pro\FunClip\venv\Lib\site-packages\anyio_backends_asyncio.py", line 859, in run
result = context.run(func, *args)
^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\Pro\FunClip\venv\Lib\site-packages\gradio\utils.py", line 818, in wrapper
response = f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "F:\Pro\FunClip\funclip\launch.py", line 68, in mix_recog
res_text, res_srt, video_state = video_recog(
^^^^^^^^^^^^
File "F:\Pro\FunClip\funclip\launch.py", line 53, in video_recog
return audio_clipper.video_recog(video_input, sd_switch, hotwords, output_dir=output_dir)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\Pro\FunClip\funclip\videoclipper.py", line 165, in video_recog
return self.recog((16000, wav), sd_switch, state, hotwords, output_dir)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\Pro\FunClip\funclip\videoclipper.py", line 68, in recog
res_srt = generateKeyError: 'sentence_info'_srt(rec_result[0]['sentence_info'])
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
KeyError: 'sentence_info'

@714274808
Copy link

有没有解决,我也出现这个情况

@Gkotta99
Copy link

Gkotta99 commented Sep 1, 2024

我也是这个问题,解决了吗

@tangweihui
Copy link

同问,有解决的吗

@slin000111
Copy link

install from source code

git clone https://github.com/alibaba/FunASR.git && cd FunASR
pip3 install -e ./

gradio 3.50.2

@Restonweb
Copy link

same issue, already install FunASR from source code.

@FaderYin
Copy link

解决了么

@FaderYin
Copy link

应该还是依赖冲突的问题,我使用conda创建环境后运行成功了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants