aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDenkingOfficial <shershnev.andrei@gmail.com>2022-10-17 03:10:59 +0500
committerAUTOMATIC1111 <16777216c@gmail.com>2022-10-17 08:01:59 +0300
commit58f3ef77336663bce2321f5b692cf2aeacd3ac1c (patch)
treea56fd2a78c7ca4c3c619d064dafbf4fb9280cc69 /modules
parent8aaadf56b3d5f06b9bd86718d7518883d94d70a0 (diff)
Fix CLIP Interrogator and disable ranks for it
Diffstat (limited to 'modules')
-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)