From ad625ef393e6ba888af6a01cff095ee3a81bca75 Mon Sep 17 00:00:00 2001 From: wataru Date: Sun, 19 Mar 2023 09:57:36 +0900 Subject: [PATCH] bugfix: calc cluster --- server/voice_changer/SoVitsSvc40v2/SoVitsSvc40v2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/voice_changer/SoVitsSvc40v2/SoVitsSvc40v2.py b/server/voice_changer/SoVitsSvc40v2/SoVitsSvc40v2.py index 818efa96..3ebfcbd4 100644 --- a/server/voice_changer/SoVitsSvc40v2/SoVitsSvc40v2.py +++ b/server/voice_changer/SoVitsSvc40v2/SoVitsSvc40v2.py @@ -204,7 +204,7 @@ class SoVitsSvc40v2: cluster_c = cluster.get_cluster_center_result(self.cluster_model, c.cpu().numpy().T, speaker[0]).T # cluster_c = cluster.get_cluster_center_result(self.cluster_model, c.cpu().numpy().T, self.settings.dstId).T cluster_c = torch.FloatTensor(cluster_c).to(dev) - print("cluster DEVICE", cluster_c.device, c.device) + # print("cluster DEVICE", cluster_c.device, c.device) c = self.settings.clusterInferRatio * cluster_c + (1 - self.settings.clusterInferRatio) * c c = c.unsqueeze(0)