From 3f4e68294a646f50be97f3705a1e4a5905f0c35e Mon Sep 17 00:00:00 2001 From: wataru Date: Sun, 4 Jun 2023 17:19:59 +0900 Subject: [PATCH] mps not support float64 --- server/voice_changer/RVC/pipeline/Pipeline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/voice_changer/RVC/pipeline/Pipeline.py b/server/voice_changer/RVC/pipeline/Pipeline.py index 408a193e..b916b27e 100644 --- a/server/voice_changer/RVC/pipeline/Pipeline.py +++ b/server/voice_changer/RVC/pipeline/Pipeline.py @@ -166,7 +166,7 @@ class Pipeline(object): npy = np.sum(self.big_npy[ix] * np.expand_dims(weight, axis=2), axis=1) # recover silient font - npy = np.concatenate([np.zeros([npyOffset, npy.shape[1]]), npy]) + npy = np.concatenate([np.zeros([npyOffset, npy.shape[1]]).astype("float32"), npy]) if self.isHalf is True: npy = npy.astype("float16")