FunASR icon indicating copy to clipboard operation
FunASR copied to clipboard

当前代码demo_libtorch.py报错

Open vic-ice opened this issue 1 year ago • 2 comments

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

❓ Questions and Help

Traceback (most recent call last): File "C:\Users\18234\Desktop\SenseVoice-main\demo_libtorch.py", line 7, in from funasr_torch import SenseVoiceSmall ModuleNotFoundError: No module named 'funasr_torch'

用源码安装可以安装onnx,但是这个死活都装不上,本地pip list可以看到,但是就是用不了显示没有。

Before asking:

  1. search the issues.
  2. search the docs.

What is your question?

Code

What have you tried?

What's your environment?

  • OS (e.g., Linux):
  • FunASR Version (e.g., 1.0.0):
  • ModelScope Version (e.g., 1.11.0):
  • PyTorch Version (e.g., 2.0.0):
  • How you installed funasr (pip, source):
  • Python version:
  • GPU (e.g., V100M32)
  • CUDA/cuDNN version (e.g., cuda11.7):
  • Docker version (e.g., funasr-runtime-sdk-cpu-0.4.1)
  • Any other relevant information:

vic-ice avatar Dec 27 '24 11:12 vic-ice

https://github.com/modelscope/FunASR/tree/main/runtime/python/libtorch/funasr_torch, 将funasr_torch文件夹复制到项目文件夹或者venv环境第三方库文件中,因为安装的funasr-torch缺少了这个文件夹

surfincanoy avatar Jan 12 '26 02:01 surfincanoy

已解决 hh

vic-ice avatar Mar 19 '26 05:03 vic-ice