mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-01-04 05:45:05 +08:00
Fix CLIP Interrogator and disable ranks for it
This commit is contained in:
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)
|
||||
|
Loading…
Reference in New Issue
Block a user