GPT-SoVITS icon indicating copy to clipboard operation
GPT-SoVITS copied to clipboard

ASR 报错 KeyError: 'funasr-pipeline is not in the pipelines registry group auto-speech-recognition.

Open hhucchenyixiao opened this issue 1 year ago • 21 comments

我按照下面放了模型,但是运行仍然报错 图片

modelscope - WARNING - ('PIPELINES', 'auto-speech-recognition', 'funasr-pipeline') not found in ast index file
Traceback (most recent call last):
  File "D:\ai\GPT-SoVITS\tools\damo_asr\cmd-asr.py", line 9, in <module>
    inference_pipeline = pipeline(
  File "D:\software\miniconda\envs\GPTSoVits\lib\site-packages\modelscope\pipelines\builder.py", line 170, in pipeline
    return build_pipeline(cfg, task_name=task)
  File "D:\software\miniconda\envs\GPTSoVits\lib\site-packages\modelscope\pipelines\builder.py", line 65, in build_pipeline
    return build_from_cfg(
  File "D:\software\miniconda\envs\GPTSoVits\lib\site-packages\modelscope\utils\registry.py", line 198, in build_from_cfg
    raise KeyError(
KeyError: 'funasr-pipeline is not in the pipelines registry group auto-speech-recognition. Please make sure the correct version of ModelScope library is used.'

hhucchenyixiao avatar Jan 17 '24 17:01 hhucchenyixiao

我也是这个问题,我自己用whisper出的文本

hyhuc0079 avatar Jan 17 '24 18:01 hyhuc0079

我也是一样的问题 funasr 0.8.8
modelscope 1.11.0

quicksandznzn avatar Jan 18 '24 03:01 quicksandznzn

+1

wickedvalley avatar Jan 18 '24 08:01 wickedvalley

+1

liuyiheng001 avatar Jan 18 '24 09:01 liuyiheng001

我也卡在这了

1713172499 avatar Jan 18 '24 09:01 1713172499

参考这里修改,重新运行会自动下载到C盘,就解决了。 https://github.com/RVC-Boss/GPT-SoVITS/issues/26#issuecomment-1895420620

1713172499 avatar Jan 18 '24 10:01 1713172499

参考这里修改,重新运行会自动下载到C盘,就解决了。 #26 (comment)

我参考这里改了,重新走网络下载,报一样的错误

selfboot avatar Jan 18 '24 10:01 selfboot

参考这里修改,重新运行会自动下载到C盘,就解决了。 #26 (comment)

我参考这里改了,重新走网络下载,报一样的错误

我重下之后就好了,或者你降级funasr试试,重下前我也执行了降级。 pip install funasr==0.8.7 pip install modelscope==1.10.0

1713172499 avatar Jan 18 '24 11:01 1713172499

pip install modelscope==1.10.0

降级modelscope就可以了

selfboot avatar Jan 18 '24 11:01 selfboot

试了试,最后通过 https://github.com/RVC-Boss/GPT-SoVITS/issues/26#issuecomment-1895420620 修改文件,加上降级 pip install funasr==0.8.7 pip install modelscope==1.10.0 成功运行了。 但是这样会在用户目录下 ~\.cache\modelscope\hub\damo 重新下载了 3 个模型,而不是调用手动下载到 .\tools\damo_asr\models 的模型

hhucchenyixiao avatar Jan 18 '24 15:01 hhucchenyixiao

试了试,最后通过 #26 (comment) 修改文件,加上降级 pip install funasr==0.8.7 pip install modelscope==1.10.0 成功运行了。 但是这样会在用户目录下 ~\.cache\modelscope\hub\damo 重新下载了 3 个模型,而不是调用手动下载到 .\tools\damo_asr\models 的模型

降级的话,应该不用修改文件,直接用本地下载的就行了的

selfboot avatar Jan 19 '24 01:01 selfboot

我也是一样的问题 funasr 0.8.8 modelscope 1.11.0

和楼上一样用whisper处理了

quicksandznzn avatar Jan 19 '24 02:01 quicksandznzn

我看阿里那边的反馈应该是asr更新以后推荐使用新的加载方式 https://github.com/alibaba-damo-academy/FunASR/issues/1238 所以应该是降级就可以用 估计是作者测试的时候自己的环境还没有更新所以没遇到错误,所以他给的asr安装步骤也是直接安装最新 大家可以先用刘悦那个asr转写工具,我看他的requirement里限定了版本号,funasr应该不会报错 这边应该后续迭代的时候会修复 不过刘悦的我没测试,我装的时候我把版本号去掉了所以我用刘悦那个也会报这个错

hyhuc0079 avatar Jan 19 '24 05:01 hyhuc0079

测了一下他那个没问题,可以先用他的生成转写文件,这边先暂时等更新,以后没准直接整合那边的过来呢

hyhuc0079 avatar Jan 19 '24 06:01 hyhuc0079

试了试,最后通过 #26 (comment) 修改文件,加上降级 pip install funasr==0.8.7 pip install modelscope==1.10.0 成功运行了。 但是这样会在用户目录下 ~\.cache\modelscope\hub\damo 重新下载了 3 个模型,而不是调用手动下载到 .\tools\damo_asr\models 的模型

降级的话,应该不用修改文件,直接用本地下载的就行了的

我把文件改回去了,把下载到C盘的模型移到工程目录下了的确可以用,不知道为啥最开始光降级没用

hhucchenyixiao avatar Jan 20 '24 03:01 hhucchenyixiao

参考这里修改,重新运行会自动下载到C盘,就解决了。 #26 (comment)

我参考这里改了,重新走网络下载,报一样的错误

我重下之后就好了,或者你降级funasr试试,重下前我也执行了降级。 pip install funasr==0.8.7 pip install modelscope==1.10.0

不行

bruce2233 avatar Jan 21 '24 17:01 bruce2233

参考这里修改,重新运行会自动下载到C盘,就解决了。 #26 (comment)

我参考这里改了,重新走网络下载,报一样的错误

我重下之后就好了,或者你降级funasr试试,重下前我也执行了降级。 pip install funasr==0.8.7 pip install modelscope==1.10.0

不行

确认cmd-asr加载模型目录正确,降级后仍然不行

potatoker avatar Jan 22 '24 08:01 potatoker

我也是一样的问题 funasr 0.8.8 modelscope 1.11.0

和楼上一样用whisper处理了

请问用whisper的话输出格式是whisper的带时间戳的json文件吗

potatoker avatar Jan 22 '24 08:01 potatoker

我也是一样的问题 funasr 0.8.8 modelscope 1.11.0

和楼上一样用whisper处理了

请问用whisper的话输出格式是whisper的带时间戳的json文件吗

看下cmd-asr的源码 改成whisper就行

quicksandznzn avatar Jan 22 '24 08:01 quicksandznzn

参考这里修改,重新运行会自动下载到C盘,就解决了。 #26 (comment)

我参考这里改了,重新走网络下载,报一样的错误

我重下之后就好了,或者你降级funasr试试,重下前我也执行了降级。 pip install funasr==0.8.7 pip install modelscope==1.10.0

成功运行,感谢

Postroggy avatar Jan 22 '24 15:01 Postroggy

Solution: https://github.com/RVC-Boss/GPT-SoVITS/issues/194#issuecomment-1910205929

LauraGPT avatar Jan 25 '24 13:01 LauraGPT

Fixed by merging https://github.com/RVC-Boss/GPT-SoVITS/pull/135.

RVC-Boss avatar Jan 29 '24 15:01 RVC-Boss