diff options
author | timntorres <timothynarcisotorres@gmail.com> | 2022-10-19 13:17:47 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2022-10-19 17:20:25 +0000 |
commit | 5e012e4dfa5dcfeade0394678cf14b70682dba6c (patch) | |
tree | 3643c87ccad3891799c2192cee43c8b4fe585efa /modules/processing.py | |
parent | 1e4809b251d478a102fd980dcfc26e21d6d3730b (diff) | |
download | stable-diffusion-webui-gfx803-5e012e4dfa5dcfeade0394678cf14b70682dba6c.tar.gz stable-diffusion-webui-gfx803-5e012e4dfa5dcfeade0394678cf14b70682dba6c.tar.bz2 stable-diffusion-webui-gfx803-5e012e4dfa5dcfeade0394678cf14b70682dba6c.zip |
Infotext saves more specific hypernet name.
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 ea926fc3..bcb0c32c 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -304,7 +304,7 @@ def create_infotext(p, all_prompts, all_seeds, all_subseeds, comments, iteration "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(':', '')),
- "Hypernet": (None if shared.loaded_hypernetwork is None else shared.loaded_hypernetwork.name.replace(',', '').replace(':', '')),
+ "Hypernet": (None if shared.loaded_hypernetwork is None else shared.loaded_hypernetwork.filename.split('\\')[-1].split('.')[0]),
"Batch size": (None if p.batch_size < 2 else p.batch_size),
"Batch pos": (None if p.batch_size < 2 else position_in_batch),
"Variation seed": (None if p.subseed_strength == 0 else all_subseeds[index]),
|