Update README.md
Browse files123123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384---
license: cc-by-4.0
------license: cc-by-4.0datasets:- CSTR-Edinburgh/vctklanguage:- en---Trained with Matcha-TTS - [Github](https://github.com/shivammehta25/Matcha-TTS) | [Paper](https://arxiv.org/abs/2309.03199)
How to Infer see [Github page](https://github.com/akjava/Matcha-TTS-Japanese/tree/main/examples)## LicenseYou must abide by cc-by-4.0 vctk license.### Datasets License- VCTK Dataset license are cc-by-4.0### Tools License
These tools did not effect output license.
- Matcha-TTS - MIT- ONNX Simplifier - Apache2.0- onnxruntime - MIT### Converted model Owner(me)I release my output under MIT License.If you want your license ,convert it by yourself
## How to Convert### Export Modelsee Matcha-TTS [ONNX export](https://github.com/shivammehta25/Matcha-TTS)### simplify model```from onnxsim import simplifyimport onnx
import argparseparser = argparse.ArgumentParser( description="create simplify onnx" )parser.add_argument( "--input","-i", type=str,required=True )parser.add_argument( "--output","-o", type=str )args = parser.parse_args()
src_model_path = args.inputif args.output == None: dst_model_path = src_model_path.replace(".onnx","_simplify.onnx")else: dst_model_path = args.output
model = onnx.load(src_model_path)model_simp, check = simplify(model)
onnx.save(model_simp, dst_model_path)```### quantize model```from onnxruntime.quantization import quantize_dynamic, QuantTypeimport argparseparser = argparse.ArgumentParser( description="create quantized onnx" )parser.add_argument( "--input","-i", type=str,required=True )parser.add_argument( "--output","-o", type=str )args = parser.parse_args()
src_model_path = args.inputif args.output == None: dst_model_path = src_model_path.replace(".onnx","_q8.onnx")else: dst_model_path = args.output # only QUInt8 works wellquantized_model = quantize_dynamic(src_model_path, dst_model_path, weight_type=QuantType.QUInt8)```README.md+84-3