Skip to content

Commit

Permalink
Just hubert model from utils
Browse files Browse the repository at this point in the history
  • Loading branch information
TomoGaSukunai committed Feb 7, 2023
1 parent ffead22 commit 4e663a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inference/infer_tool_grad.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def __init__(self):
self.SVCVITS = None
self.hps = None
self.speakers = None
self.hubert_soft = hubert_model.hubert_soft("hubert/model.pt")
self.hubert_soft = utils.get_hubert_model()

def set_device(self, device):
self.device = torch.device(device)
Expand Down
2 changes: 1 addition & 1 deletion onnx_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def main(HubertExport,NetExport):

if(HubertExport):
device = torch.device("cuda")
hubert_soft = hubert_model_onnx.hubert_soft("hubert/model.pt")
hubert_soft = utils.get_hubert_model()
test_input = torch.rand(1, 1, 16000)
input_names = ["source"]
output_names = ["embed"]
Expand Down

0 comments on commit 4e663a4

Please sign in to comment.