mirror of
https://github.com/w-okada/voice-changer.git
synced 2025-03-14 20:03:59 +03:00
bugfinx: mps not support float64
This commit is contained in:
parent
43a1583731
commit
a6b1f093e1
@ -143,7 +143,7 @@ class Pipeline(object):
|
|||||||
f0_up_key,
|
f0_up_key,
|
||||||
silence_front=silence_front,
|
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
|
except IndexError as e: # NOQA
|
||||||
raise NotEnoughDataExtimateF0()
|
raise NotEnoughDataExtimateF0()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user