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
03d7b394
Commit
03d7b394
authored
Dec 24, 2022
by
AUTOMATIC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added an option to filter out deepbooru tags
parent
ccaacb18
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
deepbooru.py
modules/deepbooru.py
+3
-1
shared.py
modules/shared.py
+1
-0
No files found.
modules/deepbooru.py
View file @
03d7b394
...
...
@@ -79,7 +79,9 @@ class DeepDanbooru:
res
=
[]
for
tag
in
tags
:
filtertags
=
set
([
x
.
strip
()
.
replace
(
' '
,
'_'
)
for
x
in
shared
.
opts
.
deepbooru_filter_tags
.
split
(
","
)])
for
tag
in
[
x
for
x
in
tags
if
x
not
in
filtertags
]:
probability
=
probability_dict
[
tag
]
tag_outformat
=
tag
if
use_spaces
:
...
...
modules/shared.py
View file @
03d7b394
...
...
@@ -386,6 +386,7 @@ options_templates.update(options_section(('interrogate', "Interrogate Options"),
"deepbooru_sort_alpha"
:
OptionInfo
(
True
,
"Interrogate: deepbooru sort alphabetically"
),
"deepbooru_use_spaces"
:
OptionInfo
(
False
,
"use spaces for tags in deepbooru"
),
"deepbooru_escape"
:
OptionInfo
(
True
,
"escape (
\\
) brackets in deepbooru (so they are used as literal brackets and not for emphasis)"
),
"deepbooru_filter_tags"
:
OptionInfo
(
""
,
"filter out those tags from deepbooru output (separated by comma)"
),
}))
options_templates
.
update
(
options_section
((
'ui'
,
"User interface"
),
{
...
...
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