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

colab运行离线批量ASR报错 #87

Open
qlql489 opened this issue Jan 23, 2024 · 1 comment
Open

colab运行离线批量ASR报错 #87

qlql489 opened this issue Jan 23, 2024 · 1 comment

Comments

@qlql489
Copy link

qlql489 commented Jan 23, 2024

报错信息如下
pip install -U rotary_embedding_torch
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/modelscope/utils/registry.py", line 212, in build_from_cfg
return obj_cls(**args)
File "/usr/local/lib/python3.10/dist-packages/modelscope/pipelines/audio/asr_inference_pipeline.py", line 123, in init
from funasr.bin import asr_inference_launch
ImportError: cannot import name 'asr_inference_launch' from 'funasr.bin' (/usr/local/lib/python3.10/dist-packages/funasr/bin/init.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/content/gpt-sovits/tools/damo_asr/cmd-asr.py", line 9, in
inference_pipeline = pipeline(
File "/usr/local/lib/python3.10/dist-packages/modelscope/pipelines/builder.py", line 170, in pipeline
return build_pipeline(cfg, task_name=task)
File "/usr/local/lib/python3.10/dist-packages/modelscope/pipelines/builder.py", line 65, in build_pipeline
return build_from_cfg(
File "/usr/local/lib/python3.10/dist-packages/modelscope/utils/registry.py", line 215, in build_from_cfg
raise type(e)(f'{obj_cls.name}: {e}')
ImportError: AutomaticSpeechRecognitionPipeline: cannot import name 'asr_inference_launch' from 'funasr.bin' (/usr/local/lib/python3.10/dist-packages/funasr/bin/init.py)

@LauraGPT
Copy link

The code should update with funasr-1.0,
Solution in here: modelscope/FunASR#1319

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

2 participants