aboutsummaryrefslogtreecommitdiffstats
path: root/modules/shared_items.py
diff options
context:
space:
mode:
authorCodeHatchling <steve@codehatch.com>2023-12-05 03:38:13 +0000
committerCodeHatchling <steve@codehatch.com>2023-12-05 03:38:13 +0000
commit38864816fa8c83d079a49f94674ca3dede9dcaad (patch)
treedfd1b97ad7c5c66ffc5c8641c6e7cc635441e82b /modules/shared_items.py
parent49bbf1140731036875573bb7c44aa7e74623c856 (diff)
parent22e23dbf29b0bbc807daa57318c31145f8dd0774 (diff)
downloadstable-diffusion-webui-gfx803-38864816fa8c83d079a49f94674ca3dede9dcaad.tar.gz
stable-diffusion-webui-gfx803-38864816fa8c83d079a49f94674ca3dede9dcaad.tar.bz2
stable-diffusion-webui-gfx803-38864816fa8c83d079a49f94674ca3dede9dcaad.zip
Merge remote-tracking branch 'origin2/dev' into soft-inpainting
# Conflicts: # modules/processing.py
Diffstat (limited to 'modules/shared_items.py')
-rw-r--r--modules/shared_items.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/modules/shared_items.py b/modules/shared_items.py
index 5024b426..991971ad 100644
--- a/modules/shared_items.py
+++ b/modules/shared_items.py
@@ -66,6 +66,22 @@ def reload_hypernetworks():
shared.hypernetworks = hypernetwork.list_hypernetworks(cmd_opts.hypernetwork_dir)
+def get_infotext_names():
+ from modules import generation_parameters_copypaste, shared
+ res = {}
+
+ for info in shared.opts.data_labels.values():
+ if info.infotext:
+ res[info.infotext] = 1
+
+ for tab_data in generation_parameters_copypaste.paste_fields.values():
+ for _, name in tab_data.get("fields") or []:
+ if isinstance(name, str):
+ res[name] = 1
+
+ return list(res)
+
+
ui_reorder_categories_builtin_items = [
"prompt",
"image",