From a6b1f093e1a720092de0106669097b422618c23e Mon Sep 17 00:00:00 2001 From: w-okada Date: Wed, 19 Jul 2023 22:08:56 +0900 Subject: [PATCH] bugfinx: mps not support float64 --- server/voice_changer/DiffusionSVC/pipeline/Pipeline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/voice_changer/DiffusionSVC/pipeline/Pipeline.py b/server/voice_changer/DiffusionSVC/pipeline/Pipeline.py index ba730e77..7d5a9de3 100644 --- a/server/voice_changer/DiffusionSVC/pipeline/Pipeline.py +++ b/server/voice_changer/DiffusionSVC/pipeline/Pipeline.py @@ -143,7 +143,7 @@ class Pipeline(object): f0_up_key, silence_front=silence_front, ) - pitch = torch.tensor(pitch[-n_frames:], device=self.device).unsqueeze(0).long() + pitch = torch.tensor(pitch[-n_frames:], device=self.device, dtype=torch.float).unsqueeze(0).long() except IndexError as e: # NOQA raise NotEnoughDataExtimateF0()