diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2022-11-19 09:24:44 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-19 09:24:44 +0000 |
commit | ff35ae9abb0e2d680bd881e219baf6c998019a9a (patch) | |
tree | b73125c7eae6c9d07b04cbb393e3b0e410c15fd0 | |
parent | aee611adb874fbabcdeea154a35908ae1f9a4bbf (diff) | |
parent | 40ae95d53218b3b8f12fca50b5e4e98a1e50af4b (diff) | |
download | stable-diffusion-webui-gfx803-ff35ae9abb0e2d680bd881e219baf6c998019a9a.tar.gz stable-diffusion-webui-gfx803-ff35ae9abb0e2d680bd881e219baf6c998019a9a.tar.bz2 stable-diffusion-webui-gfx803-ff35ae9abb0e2d680bd881e219baf6c998019a9a.zip |
Merge pull request #4679 from Eugenii10/inpaint-strength-to-infotext
Add 'Inpainting strength' to the 'generation_params' of 'infotext' (params.txt or png chunks)
-rw-r--r-- | modules/processing.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/processing.py b/modules/processing.py index be2edf48..fb30aa81 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -394,6 +394,7 @@ def create_infotext(p, all_prompts, all_seeds, all_subseeds, comments, iteration "Variation seed strength": (None if p.subseed_strength == 0 else p.subseed_strength),
"Seed resize from": (None if p.seed_resize_from_w == 0 or p.seed_resize_from_h == 0 else f"{p.seed_resize_from_w}x{p.seed_resize_from_h}"),
"Denoising strength": getattr(p, 'denoising_strength', None),
+ "Inpainting strength": (None if getattr(p, 'denoising_strength', None) is None else getattr(p, "inpainting_mask_weight", shared.opts.inpainting_mask_weight)),
"Eta": (None if p.sampler is None or p.sampler.eta == p.sampler.default_eta else p.sampler.eta),
"Clip skip": None if clip_skip <= 1 else clip_skip,
"ENSD": None if opts.eta_noise_seed_delta == 0 else opts.eta_noise_seed_delta,
|