aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorKEV <go2008to@gmail.com>2022-11-14 00:25:38 +1000
committerKEV <go2008to@gmail.com>2022-11-14 00:25:38 +1000
commit6fa891b934ba854efa87315baffc4ff458ab2539 (patch)
treef8ee90f37d9f00067b831dd785f99bcfa2672380 /modules
parent98947d173e3f1667eba29c904f681047dea9de90 (diff)
Add 'Inpainting strength' to the 'generation_params' dictionary of 'infotext' which is saved into the 'params.txt' or png chunks.
Value appears only if 'Denoising strength' appears too.
Diffstat (limited to 'modules')
-rw-r--r--modules/processing.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/processing.py b/modules/processing.py
index 03c9143d..01d7cbdc 100644
--- a/modules/processing.py
+++ b/modules/processing.py
@@ -399,6 +399,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 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,