Downloads · 30 days
0
csukuangfj/sherpa-onnx-nemo-ctc-en-citrinet-512
sherpa-onnx-nemo-ctc-en-citrinet-512 is a machine learning model from csukuangfj. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
This repo contains torchscript model of Citrinet-512 from NeMo.
Downloads · 30 days
0
Access
Public
Updated Apr 7, 2023
Repo size
485 MB
Likes
0
Public
Click a slice to open those files.
.onnx187 MB · 100%
From the Hugging Face model README
This repo contains torchscript model of Citrinet-512 from NeMo.
See https://catalog.ngc.nvidia.com/orgs/nvidia/teams/nemo/models/stt_en_citrinet_512
The following code is used to obtain model.onnx and tokens.txt:
citrinet = nemo_asr.models.EncDecCTCModelBPE.from_pretrained('stt_en_citrinet_512')
citrinet.export('model.onnx')
with open('tokens.txt', 'w') as f:
for i, s in enumerate(citrinet.decoder.vocabulary):
f.write(f"{s} {i}\n")
f.write(f"<blk> {i+1}\n")