From 9e96281f03f674be82d539702673fb7a971f09de Mon Sep 17 00:00:00 2001 From: wataru Date: Sun, 19 Mar 2023 08:06:19 +0900 Subject: [PATCH] bugfix: calc cluster --- server/voice_changer/SoVitsSvc40v2/SoVitsSvc40v2.py | 1 + 1 file changed, 1 insertion(+) diff --git a/server/voice_changer/SoVitsSvc40v2/SoVitsSvc40v2.py b/server/voice_changer/SoVitsSvc40v2/SoVitsSvc40v2.py index d87a108e..818efa96 100644 --- a/server/voice_changer/SoVitsSvc40v2/SoVitsSvc40v2.py +++ b/server/voice_changer/SoVitsSvc40v2/SoVitsSvc40v2.py @@ -204,6 +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) c = self.settings.clusterInferRatio * cluster_c + (1 - self.settings.clusterInferRatio) * c c = c.unsqueeze(0)