@@ -478,9 +478,7 @@ def create_toprow(is_img2img):
478
478
if is_img2img :
479
479
with gr .Column (scale = 1 , elem_id = "interrogate_col" ):
480
480
button_interrogate = gr .Button ('Interrogate\n CLIP' , elem_id = "interrogate" )
481
-
482
- if cmd_opts .deepdanbooru :
483
- button_deepbooru = gr .Button ('Interrogate\n DeepBooru' , elem_id = "deepbooru" )
481
+ button_deepbooru = gr .Button ('Interrogate\n DeepBooru' , elem_id = "deepbooru" )
484
482
485
483
with gr .Column (scale = 1 ):
486
484
with gr .Row ():
@@ -1004,11 +1002,10 @@ def create_ui(wrap_gradio_gpu_call):
1004
1002
outputs = [img2img_prompt ],
1005
1003
)
1006
1004
1007
- if cmd_opts .deepdanbooru :
1008
- img2img_deepbooru .click (
1009
- fn = interrogate_deepbooru ,
1010
- inputs = [init_img ],
1011
- outputs = [img2img_prompt ],
1005
+ img2img_deepbooru .click (
1006
+ fn = interrogate_deepbooru ,
1007
+ inputs = [init_img ],
1008
+ outputs = [img2img_prompt ],
1012
1009
)
1013
1010
1014
1011
@@ -1240,7 +1237,7 @@ def create_ui(wrap_gradio_gpu_call):
1240
1237
process_split = gr .Checkbox (label = 'Split oversized images' )
1241
1238
process_focal_crop = gr .Checkbox (label = 'Auto focal point crop' )
1242
1239
process_caption = gr .Checkbox (label = 'Use BLIP for caption' )
1243
- process_caption_deepbooru = gr .Checkbox (label = 'Use deepbooru for caption' , visible = True if cmd_opts . deepdanbooru else False )
1240
+ process_caption_deepbooru = gr .Checkbox (label = 'Use deepbooru for caption' , visible = True )
1244
1241
1245
1242
with gr .Row (visible = False ) as process_split_extra_row :
1246
1243
process_split_threshold = gr .Slider (label = 'Split image threshold' , value = 0.5 , minimum = 0.0 , maximum = 1.0 , step = 0.05 )
0 commit comments