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
6745e8c5
Unverified
Commit
6745e8c5
authored
Jan 05, 2023
by
AUTOMATIC1111
Committed by
GitHub
Jan 05, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6349 from philpax/fix-sd-arch-switch-in-override-settings
fix(api): assign sd_model after settings change (v2)
parents
5f4fa942
83ca8dd0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
processing.py
modules/processing.py
+4
-2
No files found.
modules/processing.py
View file @
6745e8c5
...
@@ -50,9 +50,9 @@ def apply_color_correction(correction, original_image):
...
@@ -50,9 +50,9 @@ def apply_color_correction(correction, original_image):
correction
,
correction
,
channel_axis
=
2
channel_axis
=
2
),
cv2
.
COLOR_LAB2RGB
)
.
astype
(
"uint8"
))
),
cv2
.
COLOR_LAB2RGB
)
.
astype
(
"uint8"
))
image
=
blendLayers
(
image
,
original_image
,
BlendType
.
LUMINOSITY
)
image
=
blendLayers
(
image
,
original_image
,
BlendType
.
LUMINOSITY
)
return
image
return
image
...
@@ -470,6 +470,8 @@ def process_images(p: StableDiffusionProcessing) -> Processed:
...
@@ -470,6 +470,8 @@ def process_images(p: StableDiffusionProcessing) -> Processed:
if
k
==
'sd_model_checkpoint'
:
sd_models
.
reload_model_weights
()
# make onchange call for changing SD model
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_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
)
res
=
process_images_inner
(
p
)
finally
:
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