maybe fix slerp

This commit is contained in:
Vladimir Mandic
2024-04-03 17:51:00 -04:00
parent ce2bb713d8
commit 40d5fdfdfd
5 changed files with 24 additions and 21 deletions
+4 -1
View File
@@ -369,7 +369,10 @@ def randn(seed, shape):
torch.xpu.manual_seed_all(seed)
if device.type == 'mps':
return torch.randn(shape, device=cpu).to(device)
return torch.randn(shape, device=device)
elif shared.opts.diffusers_generator_device == "CPU":
return torch.randn(shape, device=cpu)
else:
return torch.randn(shape, device=device)
def randn_without_seed(shape):