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: You will fid the exported
Now you ca use ./add-model-metadata.py i this repo to add metadata to the geerated
Note that we do't provide Itroductio
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
model.ox
file iside
/tmp/models/puc_ct-trasformer_zh-c-commo-vocab272727-pytorch
.model.ox
.model.it8.ox
becausepuc_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.
点击空白处退出提示
评论