diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-01-23 21:09:14 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-23 21:09:14 +0000 |
commit | 7ba7f4ed6e980051c9c461f514d2ddee43001b7e (patch) | |
tree | f5b927716493ca8bff06078dd68efaf5873bb91d /modules/shared.py | |
parent | 7b1c7ba87b14da9960d0347269421233f4cb5838 (diff) | |
parent | 04a561c11c9bf9a00d7f9b50ca3f7962aa59ba6e (diff) | |
download | stable-diffusion-webui-gfx803-7ba7f4ed6e980051c9c461f514d2ddee43001b7e.tar.gz stable-diffusion-webui-gfx803-7ba7f4ed6e980051c9c461f514d2ddee43001b7e.tar.bz2 stable-diffusion-webui-gfx803-7ba7f4ed6e980051c9c461f514d2ddee43001b7e.zip |
Merge pull request #7113 from vladmandic/interrogate
Add selector to interrogate categories
Diffstat (limited to 'modules/shared.py')
-rw-r--r-- | modules/shared.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/shared.py b/modules/shared.py index e17b4561..5f713bee 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -424,6 +424,7 @@ options_templates.update(options_section(('interrogate', "Interrogate Options"), "interrogate_clip_min_length": OptionInfo(24, "Interrogate: minimum description length (excluding artists, etc..)", gr.Slider, {"minimum": 1, "maximum": 128, "step": 1}),
"interrogate_clip_max_length": OptionInfo(48, "Interrogate: maximum description length", gr.Slider, {"minimum": 1, "maximum": 256, "step": 1}),
"interrogate_clip_dict_limit": OptionInfo(1500, "CLIP: maximum number of lines in text file (0 = No limit)"),
+ "interrogate_clip_skip_categories": OptionInfo([], "CLIP: skip inquire categories", gr.CheckboxGroup, lambda: {"choices": modules.interrogate.category_types()}, refresh=modules.interrogate.category_types),
"interrogate_deepbooru_score_threshold": OptionInfo(0.5, "Interrogate: deepbooru score threshold", gr.Slider, {"minimum": 0, "maximum": 1, "step": 0.01}),
"deepbooru_sort_alpha": OptionInfo(True, "Interrogate: deepbooru sort alphabetically"),
"deepbooru_use_spaces": OptionInfo(False, "use spaces for tags in deepbooru"),
|