aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenkingOfficial <shershnev.andrei@gmail.com>2022-10-16 22:10:59 +0000
committerAUTOMATIC1111 <16777216c@gmail.com>2022-10-17 05:01:59 +0000
commit58f3ef77336663bce2321f5b692cf2aeacd3ac1c (patch)
treea56fd2a78c7ca4c3c619d064dafbf4fb9280cc69
parent8aaadf56b3d5f06b9bd86718d7518883d94d70a0 (diff)
downloadstable-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
-rw-r--r--modules/interrogate.py4
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)