diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-01-26 20:29:27 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-01-26 20:31:32 +0000 |
commit | 7a14c8ab45da8a681792a6331d48a88dd684a0a9 (patch) | |
tree | e69e23e824ac24c544e0b236367e20742a44a11e /modules/processing.py | |
parent | 645f4e7ef8c9d59deea7091a22373b2da2b780f2 (diff) | |
download | stable-diffusion-webui-gfx803-7a14c8ab45da8a681792a6331d48a88dd684a0a9.tar.gz stable-diffusion-webui-gfx803-7a14c8ab45da8a681792a6331d48a88dd684a0a9.tar.bz2 stable-diffusion-webui-gfx803-7a14c8ab45da8a681792a6331d48a88dd684a0a9.zip |
add an option to enable sections from extras tab in txt2img/img2img
fix some style inconsistenices
Diffstat (limited to 'modules/processing.py')
-rw-r--r-- | modules/processing.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/processing.py b/modules/processing.py index 92894d67..262806a1 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -13,7 +13,7 @@ from skimage import exposure from typing import Any, Dict, List, Optional
import modules.sd_hijack
-from modules import devices, prompt_parser, masking, sd_samplers, lowvram, generation_parameters_copypaste, script_callbacks, extra_networks, sd_vae_approx
+from modules import devices, prompt_parser, masking, sd_samplers, lowvram, generation_parameters_copypaste, script_callbacks, extra_networks, sd_vae_approx, scripts
from modules.sd_hijack import model_hijack
from modules.shared import opts, cmd_opts, state
import modules.shared as shared
@@ -658,6 +658,11 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed: image = Image.fromarray(x_sample)
+ if p.scripts is not None:
+ pp = scripts.PostprocessImageArgs(image)
+ p.scripts.postprocess_image(p, pp)
+ image = pp.image
+
if p.color_corrections is not None and i < len(p.color_corrections):
if opts.save and not p.do_not_save_samples and opts.save_images_before_color_correction:
image_without_cc = apply_overlay(image, p.paste_to, i, p.overlay_images)
|