mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
fix samplers
This commit is contained in:
@@ -212,9 +212,9 @@ class TorchHijack:
|
||||
if noise.shape == x.shape:
|
||||
return noise
|
||||
|
||||
if opts.randn_source == "CPU" or x.device.type == 'mps':
|
||||
return torch.randn_like(x, device=devices.cpu).to(x.device)
|
||||
else:
|
||||
# if opts.randn_source == "CPU" or x.device.type == 'mps':
|
||||
# return torch.randn_like(x, device=devices.cpu).to(x.device)
|
||||
# else:
|
||||
return torch.randn_like(x)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user