diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-08-09 14:40:06 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-09 14:40:06 +0300 |
commit | c8c48640e661a0275c9ffa04b148e20213f3e902 (patch) | |
tree | 601a7db6f6811ce6c0a1cb02e7d9c30b705595bb /modules/rng.py | |
parent | 2617598b7a014676611134566fafd6604e6c4486 (diff) | |
parent | 386245a26427a64f364f66f6fecd03b3bccfd7f3 (diff) |
Merge pull request #12426 from AUTOMATIC1111/split_shared
Split shared.py into multiple files
Diffstat (limited to 'modules/rng.py')
-rw-r--r-- | modules/rng.py | 3 |
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
|