diff options
author | DenkingOfficial <shershnev.andrei@gmail.com> | 2022-10-16 22:10:59 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2022-10-17 05:01:59 +0000 |
commit | 58f3ef77336663bce2321f5b692cf2aeacd3ac1c (patch) | |
tree | a56fd2a78c7ca4c3c619d064dafbf4fb9280cc69 /modules/interrogate.py | |
parent | 8aaadf56b3d5f06b9bd86718d7518883d94d70a0 (diff) | |
download | stable-diffusion-webui-gfx803-58f3ef77336663bce2321f5b692cf2aeacd3ac1c.tar.gz stable-diffusion-webui-gfx803-58f3ef77336663bce2321f5b692cf2aeacd3ac1c.tar.bz2 stable-diffusion-webui-gfx803-58f3ef77336663bce2321f5b692cf2aeacd3ac1c.zip |
Fix CLIP Interrogator and disable ranks for it
Diffstat (limited to 'modules/interrogate.py')
-rw-r--r-- | modules/interrogate.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/interrogate.py b/modules/interrogate.py index 9263d65a..d85d7dcc 100644 --- a/modules/interrogate.py +++ b/modules/interrogate.py @@ -157,9 +157,9 @@ class InterrogateModels: matches = self.rank(image_features, items, top_count=topn)
for match, score in matches:
if include_ranks:
- res += ", " + match
- else:
res += f", ({match}:{score})"
+ else:
+ res += ", " + match
except Exception:
print(f"Error interrogating", file=sys.stderr)
|