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
8617396c
Commit
8617396c
authored
Oct 10, 2022
by
Kenneth
Committed by
AUTOMATIC1111
Oct 11, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added slider for deepbooru score threshold in settings
parent
8b7d3f1b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
shared.py
modules/shared.py
+1
-0
ui.py
modules/ui.py
+1
-1
No files found.
modules/shared.py
View file @
8617396c
...
...
@@ -239,6 +239,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
,
"Interrogate: maximum number of lines in text file (0 = No limit)"
),
"interrogate_deepbooru_score_threshold"
:
OptionInfo
(
0.5
,
"Interrogate: deepbooru score threshold"
,
gr
.
Slider
,
{
"minimum"
:
0
,
"maximum"
:
1
,
"step"
:
0.01
}),
}))
options_templates
.
update
(
options_section
((
'ui'
,
"User interface"
),
{
...
...
modules/ui.py
View file @
8617396c
...
...
@@ -311,7 +311,7 @@ def interrogate(image):
def
interrogate_deepbooru
(
image
):
prompt
=
get_deepbooru_tags
(
image
)
prompt
=
get_deepbooru_tags
(
image
,
opts
.
interrogate_deepbooru_score_threshold
)
return
gr_show
(
True
)
if
prompt
is
None
else
prompt
...
...
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