mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-04-29 10:41:25 +00:00
Update rng.py
This commit is contained in:
@@ -12,7 +12,7 @@ def randn(seed, shape, generator=None):
|
|||||||
|
|
||||||
if generator is not None:
|
if generator is not None:
|
||||||
# if generator is not none, we must generate a noise with and without
|
# if generator is not none, we must generate a noise with and without
|
||||||
# generator together to avoid future 'randn_like' get same noise again
|
# generator together to avoid future 'randn' get same noise again
|
||||||
torch.randn(shape, device=devices.device)
|
torch.randn(shape, device=devices.device)
|
||||||
|
|
||||||
if shared.opts.randn_source == "NV":
|
if shared.opts.randn_source == "NV":
|
||||||
|
|||||||
Reference in New Issue
Block a user