diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2022-10-21 13:51:01 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-21 13:51:01 +0000 |
commit | ec37f8a45f316db8a20445aa80afd602457327b0 (patch) | |
tree | 20a59fe67602feeff3ba6e023f823a314294e78e /modules/deepbooru.py | |
parent | 003d2c7fe427edde299274c9e0d5fa59734e7f7e (diff) | |
parent | 85cb5918ee7c97cafafe4149880ed82f1933d919 (diff) | |
download | stable-diffusion-webui-gfx803-ec37f8a45f316db8a20445aa80afd602457327b0.tar.gz stable-diffusion-webui-gfx803-ec37f8a45f316db8a20445aa80afd602457327b0.tar.bz2 stable-diffusion-webui-gfx803-ec37f8a45f316db8a20445aa80afd602457327b0.zip |
Merge branch 'master' into features-to-readme
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: |