diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-10-12 18:55:43 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-10-12 18:55:43 +0000 |
commit | 698d303b04e293635bfb49c525409f3bcf671dce (patch) | |
tree | 2587bfb10cc46c9005c42b4337d465137c191634 /modules/ui.py | |
parent | c3c8eef9fd5a0c8b26319e32ca4a19b56204e6df (diff) | |
download | stable-diffusion-webui-gfx803-698d303b04e293635bfb49c525409f3bcf671dce.tar.gz stable-diffusion-webui-gfx803-698d303b04e293635bfb49c525409f3bcf671dce.tar.bz2 stable-diffusion-webui-gfx803-698d303b04e293635bfb49c525409f3bcf671dce.zip |
deepbooru: added option to use spaces or underscores
deepbooru: added option to quote (\) in tags
deepbooru/BLIP: write caption to file instead of image filename
deepbooru/BLIP: now possible to use both for captions
deepbooru: process is stopped even if an exception occurs
Diffstat (limited to 'modules/ui.py')
-rw-r--r-- | modules/ui.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/modules/ui.py b/modules/ui.py index c42535c8..e07ee0e1 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -1074,11 +1074,8 @@ def create_ui(wrap_gradio_gpu_call): with gr.Row():
process_flip = gr.Checkbox(label='Create flipped copies')
process_split = gr.Checkbox(label='Split oversized images into two')
- process_caption = gr.Checkbox(label='Use BLIP caption as filename')
- if cmd_opts.deepdanbooru:
- process_caption_deepbooru = gr.Checkbox(label='Use deepbooru caption as filename')
- else:
- process_caption_deepbooru = gr.Checkbox(label='Use deepbooru caption as filename', visible=False)
+ process_caption = gr.Checkbox(label='Use BLIP for caption')
+ process_caption_deepbooru = gr.Checkbox(label='Use deepbooru for caption', visible=True if cmd_opts.deepdanbooru else False)
with gr.Row():
with gr.Column(scale=3):
|