按照官方里面的安装和运行
报以下错误:
和一警告:
根据您提供的错误信息和警告,以下是详细的分析与解决方案:
错误信息:
'funasr-pipeline is not in the pipelines registry group auto-speech-recognition. Please make sure the correct version of ModelScope library is used.'
funasr-pipeline 未在 auto-speech-recognition 的流水线注册组中找到。ModelScope 库版本不正确或过旧。funasr-pipeline 的定义。警告信息:
WARNING - ('PIPELINES', 'auto-speech-recognition', 'funasr-pipeline') not found in ast index file
funasr-pipeline 在流水线索引文件中未被找到。ModelScope 库。可以通过以下命令检查和更新:
pip show modelscope
pip install --upgrade modelscope
pip install modelscope==<version>
pipeline_config.yaml 或类似文件),确保 funasr-pipeline 已正确定义在 auto-speech-recognition 组中。pipelines:
auto-speech-recognition:
- name: funasr-pipeline
type: speech-to-text
version: 1.0.0
modelscope clean-index
modelscope build-index
funasr-pipeline 所需的所有依赖项。例如:
pip install funasr
export MODELSCOPE_DEBUG=True
ModelScope 和 funasr-pipeline 的版本是否匹配。如果不确定,请参考官方文档或联系技术支持。如果上述步骤仍无法解决问题,请提供以下信息以便进一步排查: 1. 当前使用的 ModelScope 版本。 2. 完整的错误日志。 3. 流水线配置文件内容。
通过以上方法,您应该能够解决 funasr-pipeline 未注册的问题。