mirror of
https://github.com/openvinotoolkit/stable-diffusion-webui.git
synced 2024-12-14 06:28:12 +03:00
fix missing restricted_opts from shared
This commit is contained in:
parent
aa10faa591
commit
7ba8f11688
@ -38,6 +38,7 @@ face_restorers = []
|
||||
|
||||
options_templates = None
|
||||
opts = None
|
||||
restricted_opts = None
|
||||
|
||||
sd_model: LatentDiffusion = None
|
||||
|
||||
|
@ -20,6 +20,7 @@ def initialize():
|
||||
from modules import options, shared_options
|
||||
shared.options_templates = shared_options.options_templates
|
||||
shared.opts = options.Options(shared_options.options_templates, shared_options.restricted_opts)
|
||||
shared.restricted_opts = shared_options.restricted_opts
|
||||
if os.path.exists(shared.config_filename):
|
||||
shared.opts.load(shared.config_filename)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user