Download export_onnx.py from ming5ming/Azusa: direct link, hf CLI and curl.
- Browser
- Download file 436 Bytes
-
https://huggingface.co/spaces/ming5ming/Azusa/resolve/main/export_onnx.py
- Command line
-
hf download hf://spaces/ming5ming/Azusa/export_onnx.py
-
curl -L -o export_onnx.py https://huggingface.co/spaces/ming5ming/Azusa/resolve/main/export_onnx.py
436 Bytes
| from onnx_modules import export_onnx | |
| import os | |
| if __name__ == "__main__": | |
| export_path = "BertVits2.2PT" | |
| model_path = "model\\G_0.pth" | |
| config_path = "model\\config.json" | |
| novq = False | |
| dev = False | |
| if not os.path.exists("onnx"): | |
| os.makedirs("onnx") | |
| if not os.path.exists(f"onnx/{export_path}"): | |
| os.makedirs(f"onnx/{export_path}") | |
| export_onnx(export_path, model_path, config_path, novq, dev) | |