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()