diff options
author | MalumaDev <piano.lu92@gmail.com> | 2022-10-18 15:27:30 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-18 15:27:30 +0000 |
commit | c2765c9bcd264f5a8922348cd03521cb2ff306b3 (patch) | |
tree | 475fb1048477fac8f0b9afc741b6a8eefeb339d7 /modules/deepbooru.py | |
parent | 1997ccff13fc75af223f571e8c927c3d77273dd9 (diff) | |
parent | c1093b8051606f0ac90506b7114c4b55d0447c70 (diff) | |
download | stable-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.py | 3 |
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: |