Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
prophesier
GitHub Repository: prophesier/diff-svc
Path: blob/main/onnx_export.py
446 views
1
import utils
2
from infer_tools.infer_tool import SvcOnnx
3
4
5
6
if __name__ == "__main__":
7
project_name = "Yua"
8
model_path = f'./checkpoints/{project_name}/model.ckpt'
9
config_path = f'./checkpoints/{project_name}/config.yaml'
10
hubert_gpu = False
11
12
model = SvcOnnx(project_name, config_path, hubert_gpu, model_path)
13
model = model.model
14
model.cpu()
15
model.fs2.cpu()
16
17
model.OnnxExport(project_name)
18
19
20