FunASR icon indicating copy to clipboard operation
FunASR copied to clipboard

请问如何将pytorch模型转onnx?

Open JohnHerry opened this issue 1 month ago • 1 comments

下载了一个闽南语ASR预训练模型:https://www.modelscope.cn/models/chenyongxian299/speech_UniASR_asr_2pass-minnan-16k-common-vocab3825
由于它是pytorch模型格式,不能用funasr_wss_server 加载。需要先转为onnx格式。
于是参照项目的readme:
funasr-export ++model=speech_UniASR_asr_2pass-minnan-16k-common-vocab3825 ++quantize=false ++device=cpu
但是执行报错:
AssertionError: speech_UniASR_asr_2pass-minnan-16k-common-vocab3825 is not registered
请问怎么解决呢?

JohnHerry avatar Oct 14 '25 03:10 JohnHerry