mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-04-29 18:51:31 +00:00
Update shared_init.py
This commit is contained in:
@@ -23,6 +23,10 @@ def initialize():
|
|||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
from modules import devices
|
||||||
|
shared.device = devices.device
|
||||||
|
shared.weight_load_location = None if cmd_opts.lowram else "cpu"
|
||||||
|
|
||||||
from modules import shared_state
|
from modules import shared_state
|
||||||
shared.state = shared_state.State()
|
shared.state = shared_state.State()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user