diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-09-16 05:33:47 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-09-16 05:33:47 +0000 |
commit | b153ebe3b679854e7314a6d33a038f9f0cc0c233 (patch) | |
tree | 7089ba49979120f3f604c0e3197517468d5015bd /scripts | |
parent | 37638370032892c03734f511eb5935be370ba56f (diff) | |
download | stable-diffusion-webui-gfx803-b153ebe3b679854e7314a6d33a038f9f0cc0c233.tar.gz stable-diffusion-webui-gfx803-b153ebe3b679854e7314a6d33a038f9f0cc0c233.tar.bz2 stable-diffusion-webui-gfx803-b153ebe3b679854e7314a6d33a038f9f0cc0c233.zip |
fix loopback color correction to store color_correction info for initial image and use that instead of extracting from previous image in a loop #481 #541
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/loopback.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/loopback.py b/scripts/loopback.py index f1102c92..8aca61f3 100644 --- a/scripts/loopback.py +++ b/scripts/loopback.py @@ -40,6 +40,9 @@ 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])]
+
for n in range(batch_count):
history = []
|