manyeyes/punc_ct-transformer_zh-cn-common-vocab272727-onnx
By manyeyes · ↓ 14 · ♥ 3 · Updated 2023-08-02
What's in this repo
This page lists the files in manyeyes/punc_ct-transformer_zh-cn-common-vocab272727-onnx, including model.onnx, model_quant.onnx.
- 2 ONNX models (.onnx files)
- 10 files, including 2 .yaml, 2 .txt, 2 .onnx, 1 .md, 1 .json, 1 .png
- Last updated 2023-08-02
ONNX files
How to use
These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.
README
AliCTTransformerPunc 模型介绍
使用方法
下载模型
git clone https://github.com/manyeyes/AliCTTransformerPunc.git
cd /AliCTTransformerPunc/AliCTTransformerPunc.Examples
git clone https://huggingface.co/manyeyes/punc_ct-transformer_zh-cn-common-vocab272727-onnx.git
编辑 Program.cs 中的 modelName 值:
string modelName="punc_ct-transformer_zh-cn-common-vocab272727-onnx";
//[fp32模型/int8模型],二选一
//fp32模型
//string modelFilePath = applicationBase + "./"+ modelName + "/model.onnx";
//int8模型
string modelFilePath = applicationBase + "./"+ modelName + "/model_quant.onnx";
将文件夹 punc_ct-transformer_zh-cn-common-vocab272727-onnx 中的文件属性-》复制到输出目录-》如果较新则复制。 或者 编辑 AliCTTransformerPunc.Examples.csproj ,添加
<ItemGroup>
<None Update="punc_ct-transformer_zh-cn-common-vocab272727-onnx\punc.yaml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="punc_ct-transformer_zh-cn-common-vocab272727-onnx\tokens.txt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
启动 AliCTTransformerPunc.Examples
通过modelscope了解更多
原模型
- pytorch https://www.modelscope.cn/models/damo/punc_ct-transformer_zh-cn-common-vocab272727-pytorch/summary
- 基于FunASR进行模型的微调和推理: FunASR框架支持魔搭社区开源的工业级的语音识别模型的training & finetuning,使得研究人员和开发者可以更加便捷的进行语音识别模型的研究和生产,目前已在Github开源:https://github.com/alibaba-damo-academy/FunASR 。
Files (10)
.gitattributes
README.md
config.yaml
configuration.json
example/punc_example.txt
fig/struct.png
model.onnx
ONNX
model_quant.onnx
ONNX
punc.yaml
tokens.txt
Related models
More from manyeyes
More models
No task type declared.