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
ca5a9e79
Commit
ca5a9e79
authored
Oct 22, 2022
by
AUTOMATIC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for img2img color correction in a batch #3218
parent
be748e8b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
modules/processing.py
modules/processing.py
+4
-2
No files found.
modules/processing.py
View file @
ca5a9e79
...
...
@@ -403,8 +403,6 @@ def process_images(p: StableDiffusionProcessing) -> Processed:
if
(
len
(
prompts
)
==
0
):
break
#uc = p.sd_model.get_learned_conditioning(len(prompts) * [p.negative_prompt])
#c = p.sd_model.get_learned_conditioning(prompts)
with
devices
.
autocast
():
uc
=
prompt_parser
.
get_learned_conditioning
(
shared
.
sd_model
,
len
(
prompts
)
*
[
p
.
negative_prompt
],
p
.
steps
)
c
=
prompt_parser
.
get_multicond_learned_conditioning
(
shared
.
sd_model
,
prompts
,
p
.
steps
)
...
...
@@ -716,6 +714,10 @@ class StableDiffusionProcessingImg2Img(StableDiffusionProcessing):
batch_images
=
np
.
expand_dims
(
imgs
[
0
],
axis
=
0
)
.
repeat
(
self
.
batch_size
,
axis
=
0
)
if
self
.
overlay_images
is
not
None
:
self
.
overlay_images
=
self
.
overlay_images
*
self
.
batch_size
if
self
.
color_corrections
is
not
None
and
len
(
self
.
color_corrections
)
==
1
:
self
.
color_corrections
=
self
.
color_corrections
*
self
.
batch_size
elif
len
(
imgs
)
<=
self
.
batch_size
:
self
.
batch_size
=
len
(
imgs
)
batch_images
=
np
.
array
(
imgs
)
...
...
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