diff options
author | Greg Fuller <gfuller23@gmail.com> | 2022-10-13 05:13:53 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2022-10-13 05:21:01 +0000 |
commit | 04c0e643f2eec68d93a76db171b4d70595808702 (patch) | |
tree | 135b3a94c39bd27b5e86b19ed37fc21e7d5f9964 /modules/deepbooru.py | |
parent | 4f73e057a9cb0caaa2adbd7d17ebf221f05821b0 (diff) | |
download | stable-diffusion-webui-gfx803-04c0e643f2eec68d93a76db171b4d70595808702.tar.gz stable-diffusion-webui-gfx803-04c0e643f2eec68d93a76db171b4d70595808702.tar.bz2 stable-diffusion-webui-gfx803-04c0e643f2eec68d93a76db171b4d70595808702.zip |
Merge branch 'master' of https://github.com/HunterVacui/stable-diffusion-webui
Diffstat (limited to 'modules/deepbooru.py')
-rw-r--r-- | modules/deepbooru.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/deepbooru.py b/modules/deepbooru.py index c2004696..f34f3788 100644 --- a/modules/deepbooru.py +++ b/modules/deepbooru.py @@ -164,7 +164,7 @@ def get_deepbooru_tags_from_model(model, tags, pil_image, threshold, deepbooru_o if use_escape: tag_outformat = re.sub(re_special, r'\\\1', tag_outformat) if include_ranks: - tag_outformat += f":{weight:.3f}" + tag_outformat = f"({tag_outformat}:{weight:.3f})" result_tags_out.append(tag_outformat) |