diff options
author | guaneec <guaneec@users.noreply.github.com> | 2022-10-17 19:09:50 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-17 19:09:50 +0000 |
commit | d62ef76614624cda99d842a2900242d5b7923eda (patch) | |
tree | 7dfbef1838846b1989d181667c185d719d31ecd4 /modules | |
parent | cf47d13c1e11fcb7169bac7488d2c39e579ee491 (diff) | |
download | stable-diffusion-webui-gfx803-d62ef76614624cda99d842a2900242d5b7923eda.tar.gz stable-diffusion-webui-gfx803-d62ef76614624cda99d842a2900242d5b7923eda.tar.bz2 stable-diffusion-webui-gfx803-d62ef76614624cda99d842a2900242d5b7923eda.zip |
Don't eat colons in booru tags
Diffstat (limited to 'modules')
-rw-r--r-- | modules/deepbooru.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/modules/deepbooru.py b/modules/deepbooru.py index 4ad334a1..de16b13f 100644 --- a/modules/deepbooru.py +++ b/modules/deepbooru.py @@ -157,8 +157,6 @@ 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(':', ' ') if use_spaces: tag_outformat = tag_outformat.replace('_', ' ') if use_escape: |