mirror of
https://github.com/w-okada/voice-changer.git
synced 2025-02-03 00:33:57 +03:00
update
This commit is contained in:
parent
42da74d557
commit
bb769cf6c2
@ -111,7 +111,7 @@ def export2onnx(input_model, output_model, output_model_simple, is_half):
|
||||
except:
|
||||
is_half = False
|
||||
dev = torch.device("cpu")
|
||||
net_g_onnx.eval().to(dev).float()
|
||||
net_g_onnx.eval().to(dev)
|
||||
|
||||
net_g_onnx.load_state_dict(cpt["weight"], strict=False)
|
||||
if is_half:
|
||||
@ -119,7 +119,7 @@ def export2onnx(input_model, output_model, output_model_simple, is_half):
|
||||
net_g_onnx = net_g_onnx.half()
|
||||
else:
|
||||
print("!!!!!!!!!!!!!!!!!! full")
|
||||
net_g_onnx = net_g_onnx.full()
|
||||
net_g_onnx = net_g_onnx.float()
|
||||
|
||||
if is_half:
|
||||
feats = torch.HalfTensor(1, 2192, 256).to(dev)
|
||||
|
Loading…
Reference in New Issue
Block a user