Onnx导出更新 (#231)
* Add files via upload * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Add files via upload * Add files via upload * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Delete attentions_onnx.py * Delete models_onnx.py * Add files via upload * Add files via upload * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
d42fee7905
commit
ce26468857
@@ -2,9 +2,9 @@ from onnx_modules import export_onnx
|
||||
import os
|
||||
|
||||
if __name__ == "__main__":
|
||||
export_path = "MyModel"
|
||||
model_path = "S:\\VSGIT\\bert-vits2\\G_178000.pth"
|
||||
config_path = "S:\\VSGIT\\bert-vits2\\config.json"
|
||||
export_path = "BertVits2.2PT"
|
||||
model_path = "model\\G_0.pth"
|
||||
config_path = "model\\config.json"
|
||||
if not os.path.exists("onnx"):
|
||||
os.makedirs("onnx")
|
||||
if not os.path.exists(f"onnx/{export_path}"):
|
||||
|
||||
Reference in New Issue
Block a user