Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
S
stable-diffusion-webui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
stable-diffusion-webui
Commits
2e309974
Commit
2e309974
authored
Jan 05, 2023
by
AUTOMATIC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move sd_model assignment to the place where we change the sd_model
parent
f3df2615
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
processing.py
modules/processing.py
+9
-5
No files found.
modules/processing.py
View file @
2e309974
...
...
@@ -466,12 +466,16 @@ def process_images(p: StableDiffusionProcessing) -> Processed:
try
:
for
k
,
v
in
p
.
override_settings
.
items
():
setattr
(
opts
,
k
,
v
)
if
k
==
'sd_hypernetwork'
:
shared
.
reload_hypernetworks
()
# make onchange call for changing hypernet
if
k
==
'sd_model_checkpoint'
:
sd_models
.
reload_model_weights
()
# make onchange call for changing SD model
if
k
==
'sd_vae'
:
sd_vae
.
reload_vae_weights
()
# make onchange call for changing VAE
if
k
==
'sd_hypernetwork'
:
shared
.
reload_hypernetworks
()
# make onchange call for changing hypernet
if
k
==
'sd_model_checkpoint'
:
sd_models
.
reload_model_weights
()
# make onchange call for changing SD model
p
.
sd_model
=
shared
.
sd_model
if
k
==
'sd_vae'
:
sd_vae
.
reload_vae_weights
()
# make onchange call for changing VAE
# Assign sd_model here to ensure that it reflects the model after any changes
p
.
sd_model
=
shared
.
sd_model
res
=
process_images_inner
(
p
)
finally
:
...
...
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