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
74d249f6
Commit
74d249f6
authored
May 01, 2023
by
AUTOMATIC
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'release_candidate' into dev
parents
5e4a0e3d
94754c60
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
modules/processing.py
modules/processing.py
+5
-2
scripts/xyz_grid.py
scripts/xyz_grid.py
+1
-1
No files found.
modules/processing.py
View file @
74d249f6
...
@@ -498,6 +498,11 @@ def process_images(p: StableDiffusionProcessing) -> Processed:
...
@@ -498,6 +498,11 @@ def process_images(p: StableDiffusionProcessing) -> Processed:
stored_opts
=
{
k
:
opts
.
data
[
k
]
for
k
in
p
.
override_settings
.
keys
()}
stored_opts
=
{
k
:
opts
.
data
[
k
]
for
k
in
p
.
override_settings
.
keys
()}
try
:
try
:
# if no checkpoint override or the override checkpoint can't be found, remove override entry and load opts checkpoint
if
sd_models
.
checkpoint_alisases
.
get
(
p
.
override_settings
.
get
(
'sd_model_checkpoint'
))
is
None
:
p
.
override_settings
.
pop
(
'sd_model_checkpoint'
,
None
)
sd_models
.
reload_model_weights
()
for
k
,
v
in
p
.
override_settings
.
items
():
for
k
,
v
in
p
.
override_settings
.
items
():
setattr
(
opts
,
k
,
v
)
setattr
(
opts
,
k
,
v
)
...
@@ -514,8 +519,6 @@ def process_images(p: StableDiffusionProcessing) -> Processed:
...
@@ -514,8 +519,6 @@ def process_images(p: StableDiffusionProcessing) -> Processed:
if
p
.
override_settings_restore_afterwards
:
if
p
.
override_settings_restore_afterwards
:
for
k
,
v
in
stored_opts
.
items
():
for
k
,
v
in
stored_opts
.
items
():
setattr
(
opts
,
k
,
v
)
setattr
(
opts
,
k
,
v
)
if
k
==
'sd_model_checkpoint'
:
sd_models
.
reload_model_weights
()
if
k
==
'sd_vae'
:
if
k
==
'sd_vae'
:
sd_vae
.
reload_vae_weights
()
sd_vae
.
reload_vae_weights
()
...
...
scripts/xyz_grid.py
View file @
74d249f6
...
@@ -86,7 +86,7 @@ def apply_checkpoint(p, x, xs):
...
@@ -86,7 +86,7 @@ def apply_checkpoint(p, x, xs):
info
=
modules
.
sd_models
.
get_closet_checkpoint_match
(
x
)
info
=
modules
.
sd_models
.
get_closet_checkpoint_match
(
x
)
if
info
is
None
:
if
info
is
None
:
raise
RuntimeError
(
f
"Unknown checkpoint: {x}"
)
raise
RuntimeError
(
f
"Unknown checkpoint: {x}"
)
modules
.
sd_models
.
reload_model_weights
(
shared
.
sd_model
,
info
)
p
.
override_settings
[
'sd_model_checkpoint'
]
=
info
.
hash
def
confirm_checkpoints
(
p
,
xs
):
def
confirm_checkpoints
(
p
,
xs
):
...
...
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