diff options
author | guaneec <guaneec@users.noreply.github.com> | 2022-10-17 19:15:41 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-17 19:15:41 +0000 |
commit | 2e28c841f438b2090caac2b9a54eb62ddbda837c (patch) | |
tree | b25681d1a13755e1c098ada60bfa2264e6972c1d | |
parent | d62ef76614624cda99d842a2900242d5b7923eda (diff) | |
download | stable-diffusion-webui-gfx803-2e28c841f438b2090caac2b9a54eb62ddbda837c.tar.gz stable-diffusion-webui-gfx803-2e28c841f438b2090caac2b9a54eb62ddbda837c.tar.bz2 stable-diffusion-webui-gfx803-2e28c841f438b2090caac2b9a54eb62ddbda837c.zip |
Oops
-rw-r--r-- | modules/deepbooru.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/deepbooru.py b/modules/deepbooru.py index de16b13f..8914662d 100644 --- a/modules/deepbooru.py +++ b/modules/deepbooru.py @@ -157,6 +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: + tag_outformat = tag if use_spaces: tag_outformat = tag_outformat.replace('_', ' ') if use_escape: |