diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-10-30 05:48:53 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-10-30 05:48:53 +0000 |
commit | 61836bd544fc8f4ef62f311c9d5964fbdaeb3f4c (patch) | |
tree | cf6c912a28dbf4d667d03f9251bbb12db7358769 /modules/processing.py | |
parent | 470f184176440525fadd18ec056cb04f60cd30cb (diff) | |
download | stable-diffusion-webui-gfx803-61836bd544fc8f4ef62f311c9d5964fbdaeb3f4c.tar.gz stable-diffusion-webui-gfx803-61836bd544fc8f4ef62f311c9d5964fbdaeb3f4c.tar.bz2 stable-diffusion-webui-gfx803-61836bd544fc8f4ef62f311c9d5964fbdaeb3f4c.zip |
shorten Hypernetwork strength in infotext and omit it when it's the default value.
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 ecaa78e2..b1df4918 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -396,7 +396,7 @@ def create_infotext(p, all_prompts, all_seeds, all_subseeds, comments, iteration "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),
- "Hypernetwork strength": (None if shared.loaded_hypernetwork is None else shared.opts.sd_hypernetwork_strength),
+ "Hypernet strength": (None if shared.loaded_hypernetwork is None or shared.opts.sd_hypernetwork_strength >= 1 else shared.opts.sd_hypernetwork_strength),
"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]),
|