mirror of
https://github.com/w-okada/voice-changer.git
synced 2025-01-24 05:55:01 +03:00
bugfix: mmvcv1.5 no pytorch model inference
This commit is contained in:
parent
8a650f4643
commit
253697f5d6
@ -193,7 +193,7 @@ class MMVCv15:
|
|||||||
return [spec, f0, sid]
|
return [spec, f0, sid]
|
||||||
|
|
||||||
def _onnx_inference(self, data):
|
def _onnx_inference(self, data):
|
||||||
if self.settings.onnxModelFile == "":
|
if self.settings.onnxModelFile == "" or self.settings.onnxModelFile == None:
|
||||||
print("[Voice Changer] No ONNX session.")
|
print("[Voice Changer] No ONNX session.")
|
||||||
raise NoModeLoadedException("ONNX")
|
raise NoModeLoadedException("ONNX")
|
||||||
|
|
||||||
@ -219,7 +219,7 @@ class MMVCv15:
|
|||||||
return audio1
|
return audio1
|
||||||
|
|
||||||
def _pyTorch_inference(self, data):
|
def _pyTorch_inference(self, data):
|
||||||
if self.settings.pyTorchModelFile == "":
|
if self.settings.pyTorchModelFile == "" or self.settings.pyTorchModelFile == None:
|
||||||
print("[Voice Changer] No pyTorch session.")
|
print("[Voice Changer] No pyTorch session.")
|
||||||
raise NoModeLoadedException("pytorch")
|
raise NoModeLoadedException("pytorch")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user