mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-01-04 00:02:39 -08:00
split shared.py into multiple files; should resolve all circular reference import errors related to shared.py
This commit is contained in:
parent
7d81ecbea6
commit
386245a264
24 changed files with 764 additions and 1667 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue