mps
This commit is contained in:
parent
a7e907370d
commit
7d96ab4264
@ -250,7 +250,7 @@ class RVC:
|
||||
else:
|
||||
dev = torch.device("cuda", index=self.settings.gpu)
|
||||
|
||||
print("device:", dev)
|
||||
# print("device:", dev)
|
||||
|
||||
self.hubert_model = self.hubert_model.to(dev)
|
||||
self.net_g = self.net_g.to(dev)
|
||||
|
@ -142,7 +142,8 @@ class VC(object):
|
||||
pitch = pitch[:p_len]
|
||||
pitchf = pitchf[:p_len]
|
||||
pitch = torch.tensor(pitch, device=self.device).unsqueeze(0).long()
|
||||
pitchf = torch.tensor(pitchf, device=self.device).unsqueeze(0).float()
|
||||
pitchf = torch.tensor(pitchf, device=self.device, dtype=torch.float).unsqueeze(0)
|
||||
|
||||
t2 = ttime()
|
||||
times[1] += (t2 - t1)
|
||||
if self.t_pad_tgt == 0:
|
||||
|
Loading…
x
Reference in New Issue
Block a user