Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
NaruseMioShirakana authored Feb 22, 2023
1 parent 8146a9c commit ef0c1a0
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions onnx_export.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
from modules.diff.diffusion_V2 import GaussianDiffusion
import utils
from infer_tools.infer_tool import Svc



if __name__ == "__main__":
project_name = "Yua"
model_path = f'./checkpoints/{project_name}/model.ckpt'
config_path = f'./checkpoints/{project_name}/config.yaml'
hubert_gpu = False

model = Svc(project_name, config_path, hubert_gpu, model_path, onnx=False)
model = model.model
model.cpu()
model.fs2.cpu()

model.OnnxExport(project_name)

0 comments on commit ef0c1a0

Please sign in to comment.