使用本地funasr报错
Solenyalyl opened this issue · comments
在运行python -u ASR_server.py --host "0.0.0.0" --port 10197 --ngpu 0 --model ./data/speech_paraformer-large-contextual_asr_nat-zh-cn-16k-common-vocab8404时,报错:
2024-01-07 16:01:29,003 - modelscope - INFO - PyTorch version 2.1.2 Found.
2024-01-07 16:01:29,003 - modelscope - INFO - Loading ast index from C:\Users\solenya.cache\modelscope\ast_indexer
2024-01-07 16:01:29,145 - modelscope - INFO - Loading done! Current index file version is 1.10.0, with md5 ffea442fdc1827da91e49464a349124a and a total number of 946 components indexed
model loading
Traceback (most recent call last):
File "C:\mubai\Fay-fay-assistant-edition\Fay-fay-assistant-edition\test\funasr\ASR_server.py", line 59, in
inference_pipeline_asr = pipeline(
File "C:\setup\miniconda\install\envs\mubai\lib\site-packages\modelscope\pipelines\builder.py", line 170, in pipeline
return build_pipeline(cfg, task_name=task)
File "C:\setup\miniconda\install\envs\mubai\lib\site-packages\modelscope\pipelines\builder.py", line 65, in build_pipeline
return build_from_cfg(
File "C:\setup\miniconda\install\envs\mubai\lib\site-packages\modelscope\utils\registry.py", line 206, in build_from_cfg
raise TypeError(
TypeError: type must be a str or valid type, but got <class 'NoneType'>
请问是什么原因,该如何解决?
感谢~~
没有下载模型
Solution: modelscope/FunASR#1319
这个问题最后解决了,我的问题比较智障,是因为解压之后,文件夹下面又套了一个文件夹,所以python -u ASR_server.py --host "0.0.0.0" --port 10197 --ngpu 0 --model ./data/speech_paraformer-large-contextual_asr_nat-zh-cn-16k-common-vocab8404/speech_paraformer-large-contextual_asr_nat-zh-cn-16k-common-vocab8404