From 7aebcac43443eec2effb409e6336039d6a0dbd56 Mon Sep 17 00:00:00 2001 From: wataru Date: Sat, 18 Mar 2023 11:12:45 +0900 Subject: [PATCH] update --- server/voice_changer/SoVitsSvc40v2/SoVitsSvc40v2.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/voice_changer/SoVitsSvc40v2/SoVitsSvc40v2.py b/server/voice_changer/SoVitsSvc40v2/SoVitsSvc40v2.py index fcf60b1c..76509e05 100644 --- a/server/voice_changer/SoVitsSvc40v2/SoVitsSvc40v2.py +++ b/server/voice_changer/SoVitsSvc40v2/SoVitsSvc40v2.py @@ -251,10 +251,10 @@ class SoVitsSvc40v2: { "c": c, "f0": f0, - "g": np.array([self.settings.dstId]), - "uv": np.array([self.settings.dstId]), - "predict_f0": np.array([self.settings.dstId]), - "noice_scale": np.array([self.settings.dstId]), + "g": np.array([self.settings.dstId]).astype(np.int64), + "uv": np.array([self.settings.dstId]).astype(np.int64), + "predict_f0": np.array([self.settings.dstId]).astype(np.int64), + "noice_scale": np.array([self.settings.dstId]).astype(np.int64), })[0][0, 0] * self.hps.data.max_wav_value