From b00e93e878368cda3048700fb7a6fdf82f87c2db Mon Sep 17 00:00:00 2001 From: lllyasviel Date: Wed, 24 Jan 2024 11:20:34 -0800 Subject: [PATCH] Update shared_init.py --- modules/shared_init.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/shared_init.py b/modules/shared_init.py index 9e52bbec..a1cd09af 100644 --- a/modules/shared_init.py +++ b/modules/shared_init.py @@ -23,6 +23,10 @@ def initialize(): except FileNotFoundError: 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 shared.state = shared_state.State()