aboutsummaryrefslogtreecommitdiffstats
path: root/modules/deepbooru.py
diff options
context:
space:
mode:
authorMalumaDev <piano.lu92@gmail.com>2022-10-18 15:27:30 +0000
committerGitHub <noreply@github.com>2022-10-18 15:27:30 +0000
commitc2765c9bcd264f5a8922348cd03521cb2ff306b3 (patch)
tree475fb1048477fac8f0b9afc741b6a8eefeb339d7 /modules/deepbooru.py
parent1997ccff13fc75af223f571e8c927c3d77273dd9 (diff)
parentc1093b8051606f0ac90506b7114c4b55d0447c70 (diff)
downloadstable-diffusion-webui-gfx803-c2765c9bcd264f5a8922348cd03521cb2ff306b3.tar.gz
stable-diffusion-webui-gfx803-c2765c9bcd264f5a8922348cd03521cb2ff306b3.tar.bz2
stable-diffusion-webui-gfx803-c2765c9bcd264f5a8922348cd03521cb2ff306b3.zip
Merge branch 'master' into test_resolve_conflicts
Diffstat (limited to 'modules/deepbooru.py')
-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: