Commit 58f3ef77 authored by DenkingOfficial's avatar DenkingOfficial Committed by AUTOMATIC1111

Fix CLIP Interrogator and disable ranks for it

parent 8aaadf56
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment