sherpa-onnx 中英混 ct-transformer

我要开发同款
匿名用户2024年07月31日
93阅读

技术信息

开源地址
https://modelscope.cn/models/pengzhendong/punct-ct-transformer-zh-en

作品详情

Itroductio

This model is coverted from https://modelscope.c/models/iic/pucct-trasformerzh-c-commo-vocab272727-pytorch/summary

The commads to geerate the ox model are give below:

pip istall fuasr modelscope
pip istall kaldi-ative-fbak torchaudio ox oxrutime

mkdir -p /tmp/models
cd /tmp/models

git cloe https://www.modelscope.c/iic/puc_ct-trasformer_zh-c-commo-vocab272727-pytorch.git
cd puc_ct-trasformer_zh-c-commo-vocab272727-pytorch
git lfs pull --iclude model.pt

cd /tmp
git cloe https://github.com/alibaba-damo-academy/FuASR
cd FuASR/rutime/pytho/oxrutime

cat >export-ox.py <<EOF

from fuasr_ox import CT_Trasformer
model_dir = "/tmp/puc_ct-trasformer_zh-c-commo-vocab272727-pytorch" # model = CT_Trasformer(model_dir, quatize=True) model = CT_Trasformer(model_dir)
EOF

chmod +x export-ox.py

./export-ox.py

You will fid the exported model.ox file iside /tmp/models/puc_ct-trasformer_zh-c-commo-vocab272727-pytorch.

Now you ca use ./add-model-metadata.py i this repo to add metadata to the geerated model.ox.

Note that we do't provide model.it8.ox because

puc_ct-trasformer_zh-c-commo-vocab272727-pytorch fagju$ ls -lh *.ox
-rw-r--r--  1 fagju  staff   279M Apr 12 11:08 model.ox
-rw-r--r--  1 fagju  staff   270M Apr 12 11:09 model_quat.ox

model.it8.ox does ot have advatages i the file size for this model.

功能介绍

Introduction This model is converted from https://modelscope.cn/models/iic/puncct-transformerzh-cn-c

声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论