aboutsummaryrefslogtreecommitdiff
path: root/modules/shared.py
diff options
context:
space:
mode:
authorJC-Array <44535867+JC-Array@users.noreply.github.com>2022-10-10 18:10:49 -0500
committerGitHub <noreply@github.com>2022-10-10 18:10:49 -0500
commit47f5e216da2af4b1faf232a620572f8b357855d5 (patch)
tree2544c33a8f443f226c9cf4bea7df7e3a30369812 /modules/shared.py
parentaca1553bde726e1455f3a73a6378b31e93d3e8f2 (diff)
parent76ef3d75f61253516c024553335d9083d9660a8a (diff)
Merge branch 'deepdanbooru_pre_process' into master
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 ecd15ef5..99a0264c 100644
--- a/modules/shared.py
+++ b/modules/shared.py
@@ -265,6 +265,12 @@ options_templates.update(options_section(('sampler-params', "Sampler parameters"
'eta_noise_seed_delta': OptionInfo(0, "Eta noise seed delta", gr.Number, {"precision": 0}),
}))
+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