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
e9a9764e
Unverified
Commit
e9a9764e
authored
Sep 18, 2022
by
AUTOMATIC1111
Committed by
GitHub
Sep 18, 2022
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #625 from bdrupieski/fix-batch-processing-color-correction
fix batch color correction
parents
c57ae054
2dbc9c59
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
processing.py
modules/processing.py
+2
-0
loopback.py
scripts/loopback.py
+4
-2
No files found.
modules/processing.py
View file @
e9a9764e
...
...
@@ -339,6 +339,8 @@ def process_images(p: StableDiffusionProcessing) -> Processed:
state
.
nextjob
()
p
.
color_corrections
=
None
unwanted_grid_because_of_img_count
=
len
(
output_images
)
<
2
and
opts
.
grid_only_if_multiple
if
(
opts
.
return_grid
or
opts
.
grid_save
)
and
not
p
.
do_not_save_grid
and
not
unwanted_grid_because_of_img_count
:
grid
=
images
.
image_grid
(
output_images
,
p
.
batch_size
)
...
...
scripts/loopback.py
View file @
e9a9764e
...
...
@@ -40,8 +40,7 @@ class Script(scripts.Script):
all_images
=
[]
state
.
job_count
=
loops
*
batch_count
if
opts
.
img2img_color_correction
:
p
.
color_corrections
=
[
processing
.
setup_color_correction
(
p
.
init_images
[
0
])]
initial_color_corrections
=
[
processing
.
setup_color_correction
(
p
.
init_images
[
0
])]
for
n
in
range
(
batch_count
):
history
=
[]
...
...
@@ -51,6 +50,9 @@ class Script(scripts.Script):
p
.
batch_size
=
1
p
.
do_not_save_grid
=
True
if
opts
.
img2img_color_correction
:
p
.
color_corrections
=
initial_color_corrections
state
.
job
=
f
"Iteration {i + 1}/{loops}, batch {n + 1}/{batch_count}"
processed
=
processing
.
process_images
(
p
)
...
...
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