Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
S
stable-diffusion-webui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
stable-diffusion-webui
Commits
9ae30b34
Commit
9ae30b34
authored
Nov 21, 2022
by
dtlnor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove cmd args requirement for deepdanbooru
parent
828438b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
ui.py
modules/ui.py
+6
-9
No files found.
modules/ui.py
View file @
9ae30b34
...
@@ -478,9 +478,7 @@ def create_toprow(is_img2img):
...
@@ -478,9 +478,7 @@ def create_toprow(is_img2img):
if
is_img2img
:
if
is_img2img
:
with
gr
.
Column
(
scale
=
1
,
elem_id
=
"interrogate_col"
):
with
gr
.
Column
(
scale
=
1
,
elem_id
=
"interrogate_col"
):
button_interrogate
=
gr
.
Button
(
'Interrogate
\n
CLIP'
,
elem_id
=
"interrogate"
)
button_interrogate
=
gr
.
Button
(
'Interrogate
\n
CLIP'
,
elem_id
=
"interrogate"
)
button_deepbooru
=
gr
.
Button
(
'Interrogate
\n
DeepBooru'
,
elem_id
=
"deepbooru"
)
if
cmd_opts
.
deepdanbooru
:
button_deepbooru
=
gr
.
Button
(
'Interrogate
\n
DeepBooru'
,
elem_id
=
"deepbooru"
)
with
gr
.
Column
(
scale
=
1
):
with
gr
.
Column
(
scale
=
1
):
with
gr
.
Row
():
with
gr
.
Row
():
...
@@ -1004,11 +1002,10 @@ def create_ui(wrap_gradio_gpu_call):
...
@@ -1004,11 +1002,10 @@ def create_ui(wrap_gradio_gpu_call):
outputs
=
[
img2img_prompt
],
outputs
=
[
img2img_prompt
],
)
)
if
cmd_opts
.
deepdanbooru
:
img2img_deepbooru
.
click
(
img2img_deepbooru
.
click
(
fn
=
interrogate_deepbooru
,
fn
=
interrogate_deepbooru
,
inputs
=
[
init_img
],
inputs
=
[
init_img
],
outputs
=
[
img2img_prompt
],
outputs
=
[
img2img_prompt
],
)
)
...
@@ -1240,7 +1237,7 @@ def create_ui(wrap_gradio_gpu_call):
...
@@ -1240,7 +1237,7 @@ def create_ui(wrap_gradio_gpu_call):
process_split
=
gr
.
Checkbox
(
label
=
'Split oversized images'
)
process_split
=
gr
.
Checkbox
(
label
=
'Split oversized images'
)
process_focal_crop
=
gr
.
Checkbox
(
label
=
'Auto focal point crop'
)
process_focal_crop
=
gr
.
Checkbox
(
label
=
'Auto focal point crop'
)
process_caption
=
gr
.
Checkbox
(
label
=
'Use BLIP for caption'
)
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
)
process_caption_deepbooru
=
gr
.
Checkbox
(
label
=
'Use deepbooru for caption'
,
visible
=
True
)
with
gr
.
Row
(
visible
=
False
)
as
process_split_extra_row
:
with
gr
.
Row
(
visible
=
False
)
as
process_split_extra_row
:
process_split_threshold
=
gr
.
Slider
(
label
=
'Split image threshold'
,
value
=
0.5
,
minimum
=
0.0
,
maximum
=
1.0
,
step
=
0.05
)
process_split_threshold
=
gr
.
Slider
(
label
=
'Split image threshold'
,
value
=
0.5
,
minimum
=
0.0
,
maximum
=
1.0
,
step
=
0.05
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment