aboutsummaryrefslogtreecommitdiffstats
path: root/modules/shared.py
diff options
context:
space:
mode:
authorJC_Array <justin318@att.net>2022-10-10 23:01:49 +0000
committerJC_Array <justin318@att.net>2022-10-10 23:01:49 +0000
commit76ef3d75f61253516c024553335d9083d9660a8a (patch)
tree2b68221e5806e92ced8825bad0aaeced51d1f2f5 /modules/shared.py
parentb980e7188c671fc55b26557f097076fb5c976ba0 (diff)
downloadstable-diffusion-webui-gfx803-76ef3d75f61253516c024553335d9083d9660a8a.tar.gz
stable-diffusion-webui-gfx803-76ef3d75f61253516c024553335d9083d9660a8a.tar.bz2
stable-diffusion-webui-gfx803-76ef3d75f61253516c024553335d9083d9660a8a.zip
added deepbooru settings (threshold and sort by alpha or likelyhood)
Diffstat (limited to 'modules/shared.py')
-rw-r--r--modules/shared.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/shared.py b/modules/shared.py
index 1995a99a..2e307809 100644
--- a/modules/shared.py
+++ b/modules/shared.py
@@ -261,6 +261,12 @@ options_templates.update(options_section(('sampler-params', "Sampler parameters"
's_noise': OptionInfo(1.0, "sigma noise", gr.Slider, {"minimum": 0.0, "maximum": 1.0, "step": 0.01}),
}))
+if cmd_opts.deepdanbooru:
+ options_templates.update(options_section(('deepbooru-params', "DeepBooru parameters"), {
+ "deepbooru_sort_alpha": OptionInfo(True, "Sort Alphabetical", gr.Checkbox),
+ 'deepbooru_threshold': OptionInfo(0.5, "Threshold", gr.Slider, {"minimum": 0.0, "maximum": 1.0, "step": 0.01}),
+ }))
+
class Options:
data = None