Update rng.py

This commit is contained in:
lllyasviel
2024-02-05 13:50:19 -08:00
parent 8de4896bd6
commit 1b9734c45b

View File

@@ -12,7 +12,7 @@ def randn(seed, shape, generator=None):
if generator is not None:
# 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)
if shared.opts.randn_source == "NV":