modelscope / FunASR

A Fundamental End-to-End Speech Recognition Toolkit and Open Source SOTA Pretrained Models, Supporting Speech Recognition, Voice Activity Detection, Text Post-processing etc.
https://www.funasr.com
Other
6.49k stars 688 forks source link

我按照文档全部安装成功了环境,我的电脑没有N显卡,但是在运行 下面这段代码from funasr import AutoModel model = AutoModel(model="paraformer-zh",model_path='') res = model.generate(input="https://isv-data.oss-cn-hangzhou.aliyuncs.com/ics/MaaS/ASR/test_audio/vad_example.wav") print(res) 抛出异常ModuleNotFoundError: No module named 'torch' 请问这是什么情况 #1533

Closed anstonjie closed 6 months ago

anstonjie commented 6 months ago

Notice: In order to resolve issues more efficiently, please raise issue following the template. (注意:为了更加高效率解决您遇到的问题,请按照模板提问,补充细节)

🐛 Bug

ModuleNotFoundError: No module named 'torch'

To Reproduce

Steps to reproduce the behavior (always include the command you ran):

  1. Run py test.py from funasr import AutoModel

model = AutoModel(model="paraformer-zh",model_path='')

res = model.generate(input="https://isv-data.oss-cn-hangzhou.aliyuncs.com/ics/MaaS/ASR/test_audio/vad_example.wav") print(res)

  1. See error

ModuleNotFoundError: No module named 'torch'

Code sample

Expected behavior

Environment

Additional context

LauraGPT commented 6 months ago

pip install torch torchaudio