diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2024-01-20 07:25:29 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-20 07:25:29 +0000 |
commit | 41c2121e510c1887cada376359672437809afe96 (patch) | |
tree | 89cb086ba1b3212e7050c68a6a351e406067f5d5 /modules/processing.py | |
parent | 5df56b3980fed9efc4d0ba3a5a52782c34acd9f1 (diff) | |
parent | c1e04c63b3d2a5102b4cf6deddea337c8a964c53 (diff) | |
download | stable-diffusion-webui-gfx803-41c2121e510c1887cada376359672437809afe96.tar.gz stable-diffusion-webui-gfx803-41c2121e510c1887cada376359672437809afe96.tar.bz2 stable-diffusion-webui-gfx803-41c2121e510c1887cada376359672437809afe96.zip |
Merge pull request #14657 from AUTOMATIC1111/callback-postprocess_image_after_composite
callback postprocess_image_after_composite
Diffstat (limited to 'modules/processing.py')
-rw-r--r-- | modules/processing.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/processing.py b/modules/processing.py index 547ab2f8..6b631795 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -1029,6 +1029,11 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed: image = apply_overlay(image, p.paste_to, overlay_image)
+ if p.scripts is not None:
+ pp = scripts.PostprocessImageArgs(image)
+ p.scripts.postprocess_image_after_composite(p, pp)
+ image = pp.image
+
if save_samples:
images.save_image(image, p.outpath_samples, "", p.seeds[i], p.prompts[i], opts.samples_format, info=infotext(i), p=p)
|