Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能用AutoModel加载.onnx的模型吗 #1938

Open
viviliuwqhduhnwqihwqwudceygysjiwuwnn opened this issue Jul 22, 2024 · 0 comments
Open

能用AutoModel加载.onnx的模型吗 #1938

viviliuwqhduhnwqihwqwudceygysjiwuwnn opened this issue Jul 22, 2024 · 0 comments
Labels
question Further information is requested

Comments

@viviliuwqhduhnwqihwqwudceygysjiwuwnn

from pathlib import Path
from funasr import AutoModel
model = AutoModel(
model=r"iic/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-online-onnx"
)
res = model.generate(input="{}/.cache/modelscope/hub/damo/speech_fsmn_vad_zh-pytorch/example/vad_example.wav".format(Path.home()),
)
print(res)为什么执行报错
AssertionError: iic/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-online-onnx is not registered,
换成不是.onnx的就不报错,

@viviliuwqhduhnwqihwqwudceygysjiwuwnn viviliuwqhduhnwqihwqwudceygysjiwuwnn added the question Further information is requested label Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant