modelscope / FunASR

A Fundamental End-to-End Speech Recognition Toolkit and Open Source SOTA Pretrained Models, Supporting Speech Recognition, Voice Activity Detection, Text Post-processing etc.
https://www.funasr.com
Other
4.62k stars 514 forks source link

KeyError: 'FunASRPipeline: KeyError("GenericFunASR: \'config\'")' #1448

Open suzhaoxi opened 4 months ago

suzhaoxi commented 4 months ago

❓ Questions and Help

运行时,提示:KeyError: 'FunASRPipeline: KeyError("GenericFunASR: \'config\'")'

4b923343b8a447e300b43523a3369749

What is your question?

Code

from modelscope.pipelines import pipeline from modelscope.utils.constant import Tasks

AudioFile = 'D:/project/Paraformer/data/output.wav'

inference_pipeline = pipeline( task=Tasks.auto_speech_recognition, model='damo/speech_paraformer-large-vad-punc_asr_nat-zh-cn-16k-common-vocab8404-pytorch', model_revision="v2.0.4")

rec_result = inference_pipeline(audio_in=AudioFile)

print(rec_result)

What have you tried?

What's your environment?

LauraGPT commented 4 months ago

Please update modelscope and retry it again: pip install -U modelscope

Or you could use it directly by AutoModel: https://github.com/alibaba-damo-academy/FunASR/blob/main/examples/industrial_data_pretraining/bicif_paraformer/demo.py