rename CPU RNG to RNG source in settings, add infotext and parameters copypaste support to RNG source

This commit is contained in:
AUTOMATIC
2023-04-29 11:29:37 +03:00
parent cb9571e37f
commit 5fe0dd79be
6 changed files with 13 additions and 6 deletions

View File

@@ -190,7 +190,7 @@ class TorchHijack:
if noise.shape == x.shape:
return noise
if opts.use_cpu_randn or x.device.type == 'mps':
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)