diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-07-08 10:58:31 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-08 10:58:31 +0000 |
commit | 9be8903ca92f5e6fc29cb8b14fc837b50de19f2f (patch) | |
tree | 769492aee59fd51d6cd0c4c2d62dd074bbaadb8f | |
parent | e338f4142fd77f91f73ae82654327acce73dfb71 (diff) | |
parent | f731a728c68035ee36317ed0096ac5ecbfd50553 (diff) | |
download | stable-diffusion-webui-gfx803-9be8903ca92f5e6fc29cb8b14fc837b50de19f2f.tar.gz stable-diffusion-webui-gfx803-9be8903ca92f5e6fc29cb8b14fc837b50de19f2f.tar.bz2 stable-diffusion-webui-gfx803-9be8903ca92f5e6fc29cb8b14fc837b50de19f2f.zip |
Merge pull request #11567 from AUTOMATIC1111/seed_resize_to_0
Don't add "Seed Resize: -1x-1" to API image metadata
-rw-r--r-- | modules/processing.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/processing.py b/modules/processing.py index 85e104aa..89ad1bd0 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -575,7 +575,7 @@ def create_infotext(p, all_prompts, all_seeds, all_subseeds, comments=None, iter "Model": (None if not opts.add_model_name_to_info or not shared.sd_model.sd_checkpoint_info.model_name else shared.sd_model.sd_checkpoint_info.model_name.replace(',', '').replace(':', '')),
"Variation seed": (None if p.subseed_strength == 0 else all_subseeds[index]),
"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}"),
+ "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),
"Conditional mask weight": getattr(p, "inpainting_mask_weight", shared.opts.inpainting_mask_weight) if p.is_using_inpainting_conditioning else None,
"Clip skip": None if clip_skip <= 1 else clip_skip,
|