我的脚本是这样的
from modelscope.pipelines import pipeline
from modelscope.utils.constant import Tasks
p = pipeline('auto-speech-recognition', '/root/.cache/modelscope/hub/damo/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-pytorch')
result = p('2.wav')
print(result)
经过测试发现一直卡在这里:
Check update of funasr, and it would cost few times. You may disable it by set disable_update=True
in AutoModel
funasr version: 1.1.5.
如果把网络断掉就很快,好像是检测funasr更新太耗时了,怎么样可以关掉呢?