From 253697f5d6ae11b1d17c5e517b76290432a56ccf Mon Sep 17 00:00:00 2001 From: wataru Date: Wed, 19 Apr 2023 12:36:23 +0900 Subject: [PATCH] bugfix: mmvcv1.5 no pytorch model inference --- server/voice_changer/MMVCv15/MMVCv15.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/voice_changer/MMVCv15/MMVCv15.py b/server/voice_changer/MMVCv15/MMVCv15.py index 36f2020d..cd96a520 100644 --- a/server/voice_changer/MMVCv15/MMVCv15.py +++ b/server/voice_changer/MMVCv15/MMVCv15.py @@ -193,7 +193,7 @@ class MMVCv15: return [spec, f0, sid] def _onnx_inference(self, data): - if self.settings.onnxModelFile == "": + if self.settings.onnxModelFile == "" or self.settings.onnxModelFile == None: print("[Voice Changer] No ONNX session.") raise NoModeLoadedException("ONNX") @@ -219,7 +219,7 @@ class MMVCv15: return audio1 def _pyTorch_inference(self, data): - if self.settings.pyTorchModelFile == "": + if self.settings.pyTorchModelFile == "" or self.settings.pyTorchModelFile == None: print("[Voice Changer] No pyTorch session.") raise NoModeLoadedException("pytorch")