mirror of
https://github.com/modelscope/FunASR.git
synced 2026-10-12 02:19:18 +00:00
* qwenaudio qwenaudiochat * qwenaudio qwenaudiochat * whisper * whisper * llm * llm * llm * llm * llm * llm * llm * llm * export onnx * export onnx * export onnx
24 lines
639 B
Bash
24 lines
639 B
Bash
# Copyright FunASR (https://github.com/alibaba-damo-academy/FunASR). All Rights Reserved.
|
|
# MIT License (https://opensource.org/licenses/MIT)
|
|
|
|
# method1, inference from model hub
|
|
export HYDRA_FULL_ERROR=1
|
|
|
|
|
|
model="iic/punc_ct-transformer_zh-cn-common-vocab272727-pytorch"
|
|
model_revision="v2.0.4"
|
|
|
|
python -m funasr.bin.export \
|
|
++model=${model} \
|
|
++model_revision=${model_revision} \
|
|
++type="onnx" \
|
|
++quantize=false
|
|
|
|
|
|
# method2, inference from local path
|
|
model="/Users/zhifu/.cache/modelscope/hub/iic/punc_ct-transformer_zh-cn-common-vocab272727-pytorch"
|
|
|
|
python -m funasr.bin.export \
|
|
++model=${model} \
|
|
++type="onnx" \
|
|
++quantize=false |