FunASR icon indicating copy to clipboard operation
FunASR copied to clipboard

【pipeline】如何加载本地模型

Open hexianbin1994 opened this issue 1 year ago • 3 comments
trafficstars

环境: 系统--windows python3.8 modelscope==1.10.0

模型下载到本地后,设置哪项参数可以加载本地模型,而不是从网络下载。

pipeline(
        task=Tasks.auto_speech_recognition,
        model='damo/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-online',
        model_revision='v1.0.6',
        mode="paraformer_streaming"
    )

hexianbin1994 avatar Dec 27 '23 09:12 hexianbin1994

Ref to docs

LauraGPT avatar Dec 27 '23 15:12 LauraGPT

好的,可以了,谢谢

hexianbin1994 avatar Dec 28 '23 02:12 hexianbin1994

@LauraGPT 刚刚发现换了ubuntu系统上,又需要重新下载了,是不是有什么默认配置项需要配置的

    inference_pipline = pipeline(
        task=Tasks.punctuation,
        model="workspace/funASR/modelscope/damo/punc_ct-transformer_zh-cn-common-vocab272727-pytorch'",
        model_revision="v1.1.7")

日志: image

hexianbin1994 avatar Dec 28 '23 08:12 hexianbin1994