mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
general punc model conversion onnx, fix bug
This commit is contained in:
parent
7a6753aa52
commit
bf918fe311
@ -3,7 +3,7 @@ import numpy as np
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
onnx_path = "/disk1/mengzhe.cmz/workspace/FunASR/funasr/export/damo/punc_ct-transformer_zh-cn-common-vocab272727-pytorch/model.onnx"
|
||||
onnx_path = "../damo/punc_ct-transformer_zh-cn-common-vocab272727-pytorch/model.onnx"
|
||||
sess = onnxruntime.InferenceSession(onnx_path)
|
||||
input_name = [nd.name for nd in sess.get_inputs()]
|
||||
output_name = [nd.name for nd in sess.get_outputs()]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user