mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-24 10:51:03 -08:00
Merge pull request #625 from bdrupieski/fix-batch-processing-color-correction
fix batch color correction
This commit is contained in:
commit
e9a9764e00
2 changed files with 6 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue