Skip to content

Instantly share code, notes, and snippets.

View Think0508's full-sized avatar

Dsy Think0508

View GitHub Profile
@yy-zhong
yy-zhong / README.md
Created May 13, 2024 04:34
构建CapsWriter-Offline的新模型

运行python3 download-model.py,在下载目录里将model_quant.onnx复制到根目录,并重命名为model.onnx

运行python3 add-model-metadata.py,此时model.onnx会得到更新。

运行python3 quantize-model.py,获得model.int8.onnx

model.int8.onnxconfig.yamlconfiguration.json复制到原始的models\paraformer-offline-zh中,此时更新完成。

P.S. 原始的tokens.txt无需修改。