xszyou / Fay

Fay is an open-source digital human framework integrating language models and digital characters. It offers retail, assistant, and agent versions for diverse applications like virtual shopping guides, broadcasters, assistants, waiters, teachers, and voice or text-based mobile assistants.
GNU General Public License v3.0
8.6k stars 1.72k forks source link

使用本地funasr报错 #97

Closed Solenyalyl closed 5 months ago

Solenyalyl commented 6 months ago

在运行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'>

请问是什么原因,该如何解决? 感谢~~

qinzhuguang commented 6 months ago

没有下载模型

Solenyalyl commented 6 months ago

image 是这个吗?已经下载并且安装了

qinzhuguang commented 6 months ago

image 是这个吗?已经下载并且安装了

LauraGPT commented 5 months ago

Solution: https://github.com/alibaba-damo-academy/FunASR/discussions/1319

Solenyalyl commented 5 months ago

这个问题最后解决了,我的问题比较智障,是因为解压之后,文件夹下面又套了一个文件夹,所以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