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 63d7a20 commit 9b31567
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions onnx_export.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from modules.diff.diffusion_V2 import GaussianDiffusion
import utils
from infer_tools.infer_tool import Svc
from infer_tools.infer_tool import SvcOnnx



Expand All @@ -10,7 +9,7 @@
config_path = f'./checkpoints/{project_name}/config.yaml'
hubert_gpu = False

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

0 comments on commit 9b31567

Please sign in to comment.