diff options
author | Jared Deckard <jared@shademaps.com> | 2023-06-15 15:55:53 +0000 |
---|---|---|
committer | Jared Deckard <jared@shademaps.com> | 2023-06-15 16:00:20 +0000 |
commit | f603275d84301b5ee952683e951dd1aad72ba615 (patch) | |
tree | a9774e5358f74c93b5129abe896f4f634fc229be /modules | |
parent | 8f18e672439fa1926717df2c938e7089149f3a8b (diff) | |
download | stable-diffusion-webui-gfx803-f603275d84301b5ee952683e951dd1aad72ba615.tar.gz stable-diffusion-webui-gfx803-f603275d84301b5ee952683e951dd1aad72ba615.tar.bz2 stable-diffusion-webui-gfx803-f603275d84301b5ee952683e951dd1aad72ba615.zip |
Add an opt-in infotext user name setting
Diffstat (limited to 'modules')
-rw-r--r-- | modules/processing.py | 2 | ||||
-rw-r--r-- | modules/shared.py | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/modules/processing.py b/modules/processing.py index 3e8d153e..a0cc8db2 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -580,7 +580,7 @@ def create_infotext(p, all_prompts, all_seeds, all_subseeds, comments=None, iter "NGMS": None if p.s_min_uncond == 0 else p.s_min_uncond,
**p.extra_generation_params,
"Version": program_version() if opts.add_version_to_infotext else None,
- "User": p.user,
+ "User": p.user if opts.add_user_name_to_info else None,
}
generation_params_text = ", ".join([k if k == v else f'{k}: {generation_parameters_copypaste.quote(v)}' for k, v in generation_params.items() if v is not None])
diff --git a/modules/shared.py b/modules/shared.py index 271a062d..4c639a21 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -496,6 +496,7 @@ options_templates.update(options_section(('ui', "User interface"), { options_templates.update(options_section(('infotext', "Infotext"), {
"add_model_hash_to_info": OptionInfo(True, "Add model hash to generation information"),
"add_model_name_to_info": OptionInfo(True, "Add model name to generation information"),
+ "add_user_name_to_info": OptionInfo(False, "Add user name to generation information when authenticated"),
"add_version_to_infotext": OptionInfo(True, "Add program version to generation information"),
"disable_weights_auto_swap": OptionInfo(True, "When reading generation parameters from text into UI (from PNG info or pasted text), do not change the selected model/checkpoint."),
}))
|