aboutsummaryrefslogtreecommitdiffstats
path: root/modules/rng.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-08-09 07:25:35 +0000
committerAUTOMATIC1111 <16777216c@gmail.com>2023-08-09 07:25:35 +0000
commit386245a26427a64f364f66f6fecd03b3bccfd7f3 (patch)
tree427cd01b680c318acb964076232b064882d2f364 /modules/rng.py
parent7d81ecbea6b558addd356d49c56891d04bc91fd4 (diff)
downloadstable-diffusion-webui-gfx803-386245a26427a64f364f66f6fecd03b3bccfd7f3.tar.gz
stable-diffusion-webui-gfx803-386245a26427a64f364f66f6fecd03b3bccfd7f3.tar.bz2
stable-diffusion-webui-gfx803-386245a26427a64f364f66f6fecd03b3bccfd7f3.zip
split shared.py into multiple files; should resolve all circular reference import errors related to shared.py
Diffstat (limited to 'modules/rng.py')
-rw-r--r--modules/rng.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/rng.py b/modules/rng.py
index 2d7baea5..f927a318 100644
--- a/modules/rng.py
+++ b/modules/rng.py
@@ -63,9 +63,8 @@ def randn_without_seed(shape, generator=None):
def manual_seed(seed):
"""Set up a global random number generator using the specified seed."""
- from modules.shared import opts
- if opts.randn_source == "NV":
+ if shared.opts.randn_source == "NV":
global nv_rng
nv_rng = rng_philox.Generator(seed)
return