在modelscope-funasr中如下报错如何解决?
def export_torchscript():
from funasr import AutoModel
model = AutoModel(
model=r"/data/model/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-pytorch",
device="cuda:0"
)
res = model.export(type="onnx", quantize=False)
print(res)
报错:
AssertionError: /data/model/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-pytorch is not registered