diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-07-19 12:49:31 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2023-07-19 12:49:31 +0000 |
commit | 05ccb4d0e3ff38503a2863889e21290e77590ee2 (patch) | |
tree | 2779a542c41b16e7780a229a2c78d1cfb207499a /modules/processing.py | |
parent | b010eea520caa90d2a31d98ec7c4a9d9d540c9ad (diff) | |
download | stable-diffusion-webui-gfx803-05ccb4d0e3ff38503a2863889e21290e77590ee2.tar.gz stable-diffusion-webui-gfx803-05ccb4d0e3ff38503a2863889e21290e77590ee2.tar.bz2 stable-diffusion-webui-gfx803-05ccb4d0e3ff38503a2863889e21290e77590ee2.zip |
bugfix: model name was added together with directory name to infotext and to [model_name] filename pattern
Diffstat (limited to 'modules/processing.py')
-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 6567b3cf..179ca6ac 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -587,7 +587,7 @@ def create_infotext(p, all_prompts, all_seeds, all_subseeds, comments=None, iter "Face restoration": (opts.face_restoration_model if p.restore_faces else None),
"Size": f"{p.width}x{p.height}",
"Model hash": getattr(p, 'sd_model_hash', None if not opts.add_model_hash_to_info or not shared.sd_model.sd_model_hash else shared.sd_model.sd_model_hash),
- "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(':', '')),
+ "Model": (None if not opts.add_model_name_to_info else shared.sd_model.sd_checkpoint_info.name_for_extra),
"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}"),
|