Skip to content

Commit 61836bd

Browse files
committed
shorten Hypernetwork strength in infotext and omit it when it's the default value.
1 parent 470f184 commit 61836bd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/generation_parameters_copypaste.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def integrate_settings_paste_fields(component_dict):
6666

6767
settings_map = {
6868
'sd_hypernetwork': 'Hypernet',
69-
'sd_hypernetwork_strength': 'Hypernetwork strength',
69+
'sd_hypernetwork_strength': 'Hypernet strength',
7070
'CLIP_stop_at_last_layers': 'Clip skip',
7171
'sd_model_checkpoint': 'Model hash',
7272
}

modules/processing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ def create_infotext(p, all_prompts, all_seeds, all_subseeds, comments, iteration
396396
"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),
397397
"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(':', '')),
398398
"Hypernet": (None if shared.loaded_hypernetwork is None else shared.loaded_hypernetwork.name),
399-
"Hypernetwork strength": (None if shared.loaded_hypernetwork is None else shared.opts.sd_hypernetwork_strength),
399+
"Hypernet strength": (None if shared.loaded_hypernetwork is None or shared.opts.sd_hypernetwork_strength >= 1 else shared.opts.sd_hypernetwork_strength),
400400
"Batch size": (None if p.batch_size < 2 else p.batch_size),
401401
"Batch pos": (None if p.batch_size < 2 else position_in_batch),
402402
"Variation seed": (None if p.subseed_strength == 0 else all_subseeds[index]),

0 commit comments

Comments
 (0)