bugfix: same slot

This commit is contained in:
wataru 2023-04-25 17:19:28 +09:00
parent 228068b667
commit d84e9a776b

View File

@ -149,7 +149,7 @@ class RVC:
except Exception as e: except Exception as e:
print("EXCEPTION during loading hubert/contentvec model", 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.prepareModel(tmp_slot)
self.settings.modelSlotIndex = tmp_slot self.settings.modelSlotIndex = tmp_slot
self.currentSlot = self.settings.modelSlotIndex self.currentSlot = self.settings.modelSlotIndex