Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stable Diffusion Webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
novelai-storage
Stable Diffusion Webui
Commits
f8ca37b9
Commit
f8ca37b9
authored
May 17, 2023
by
AUTOMATIC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix inability to run with --freeze-settings
parent
b4703b78
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
21 deletions
+17
-21
webui.py
webui.py
+17
-21
No files found.
webui.py
View file @
f8ca37b9
...
...
@@ -144,16 +144,11 @@ Use --skip-version-check commandline argument to disable this check.
"""
.
strip
())
def
initialize
():
fix_asyncio_event_loop_policy
()
check_versions
()
extensions
.
list_extensions
()
localization
.
list_localizations
(
cmd_opts
.
localizations_dir
)
startup_timer
.
record
(
"list extensions"
)
def
restore_config_state_file
():
config_state_file
=
shared
.
opts
.
restore_config_state_file
if
config_state_file
==
""
:
return
shared
.
opts
.
restore_config_state_file
=
""
shared
.
opts
.
save
(
shared
.
config_filename
)
...
...
@@ -166,6 +161,18 @@ def initialize():
elif
config_state_file
:
print
(
f
"!!! Config state backup not found: {config_state_file}"
)
def
initialize
():
fix_asyncio_event_loop_policy
()
check_versions
()
extensions
.
list_extensions
()
localization
.
list_localizations
(
cmd_opts
.
localizations_dir
)
startup_timer
.
record
(
"list extensions"
)
restore_config_state_file
()
if
cmd_opts
.
ui_debug_mode
:
shared
.
sd_upscalers
=
upscaler
.
UpscalerLanczos
()
.
scalers
modules
.
scripts
.
load_scripts
()
...
...
@@ -370,18 +377,7 @@ def webui():
extensions
.
list_extensions
()
startup_timer
.
record
(
"list extensions"
)
config_state_file
=
shared
.
opts
.
restore_config_state_file
shared
.
opts
.
restore_config_state_file
=
""
shared
.
opts
.
save
(
shared
.
config_filename
)
if
os
.
path
.
isfile
(
config_state_file
):
print
(
f
"*** About to restore extension state from file: {config_state_file}"
)
with
open
(
config_state_file
,
"r"
,
encoding
=
"utf-8"
)
as
f
:
config_state
=
json
.
load
(
f
)
config_states
.
restore_extension_config
(
config_state
)
startup_timer
.
record
(
"restore extension config"
)
elif
config_state_file
:
print
(
f
"!!! Config state backup not found: {config_state_file}"
)
restore_config_state_file
()
localization
.
list_localizations
(
cmd_opts
.
localizations_dir
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment