aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2022-10-18 14:18:05 +0300
committerGitHub <noreply@github.com>2022-10-18 14:18:05 +0300
commitcd9c6e0edf98ccd9a912f90661bd3e67ff169780 (patch)
treecbf69f513e97972738a5ecc9ed1d9fc5c52a54a0 /modules
parentc07dbd4cf9831b1f785c01a6dec409c0338a41ab (diff)
parent2e28c841f438b2090caac2b9a54eb62ddbda837c (diff)
Merge pull request #2984 from guaneec/D
Don't eat colons in booru tags
Diffstat (limited to 'modules')
-rw-r--r--modules/deepbooru.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/deepbooru.py b/modules/deepbooru.py
index 4ad334a1..8914662d 100644
--- a/modules/deepbooru.py
+++ b/modules/deepbooru.py
@@ -157,8 +157,7 @@ def get_deepbooru_tags_from_model(model, tags, pil_image, threshold, deepbooru_o
# sort by reverse by likelihood and normal for alpha, and format tag text as requested
unsorted_tags_in_theshold.sort(key=lambda y: y[sort_ndx], reverse=(not alpha_sort))
for weight, tag in unsorted_tags_in_theshold:
- # note: tag_outformat will still have a colon if include_ranks is True
- tag_outformat = tag.replace(':', ' ')
+ tag_outformat = tag
if use_spaces:
tag_outformat = tag_outformat.replace('_', ' ')
if use_escape: