Fix CLIP Interrogator and disable ranks for it

This commit is contained in:
DenkingOfficial 2022-10-17 03:10:59 +05:00 committed by AUTOMATIC1111
parent 8aaadf56b3
commit 58f3ef7733

@ -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)