-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Notice: In order to resolve issues more efficiently, please raise issue following the template.
(注意:为了更加高效率解决您遇到的问题,请按照模板提问,补充细节)
🐛 Bug
To Reproduce
Steps to reproduce the behavior (always include the command you ran):
- 在项目根目录运行 README.md 中的示例脚本

注意:运行前需要修改一下 wav_path, 代码中给的 wav_path 少了一层
- 修正路径后报错如下:

但文件实际是存在的(如文中绿色的部分)
Code sample
修正后的代码为
from pathlib import Path
from runtime.python.onnxruntime.funasr_onnx.paraformer_bin import Paraformer
model_dir = "damo/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-pytorch"
model = Paraformer(model_dir, batch_size=1, quantize=True)
home_dir = Path.home()
wav_path = [f"{home_dir}/.cache/modelscope/hub/models/damo/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-pytorch/example/asr_example.wav"]
result = model(wav_path)
print(result)
Expected behavior
Environment
- OS: Linux
- FunASR Version: a750595
- 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): L4
- CUDA/cuDNN version (e.g., cuda11.7):
- Docker version (e.g., funasr-runtime-sdk-cpu-0.4.1)
- Any other relevant information:
- FunASR Version: 1.2.6
Additional context
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working