From d84e9a776b0b4a19b28d357290103a46130a75d2 Mon Sep 17 00:00:00 2001 From: wataru Date: Tue, 25 Apr 2023 17:19:28 +0900 Subject: [PATCH] bugfix: same slot --- server/voice_changer/RVC/RVC.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/voice_changer/RVC/RVC.py b/server/voice_changer/RVC/RVC.py index 38848081..864635e6 100644 --- a/server/voice_changer/RVC/RVC.py +++ b/server/voice_changer/RVC/RVC.py @@ -149,7 +149,7 @@ class RVC: except Exception as e: print("EXCEPTION during loading hubert/contentvec model", e) - if self.initialLoad: + if self.initialLoad or tmp_slot == self.currentSlot: self.prepareModel(tmp_slot) self.settings.modelSlotIndex = tmp_slot self.currentSlot = self.settings.modelSlotIndex