mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-01-06 07:05:06 +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)
|
matches = self.rank(image_features, items, top_count=topn)
|
||||||
for match, score in matches:
|
for match, score in matches:
|
||||||
if include_ranks:
|
if include_ranks:
|
||||||
res += ", " + match
|
|
||||||
else:
|
|
||||||
res += f", ({match}:{score})"
|
res += f", ({match}:{score})"
|
||||||
|
else:
|
||||||
|
res += ", " + match
|
||||||
|
|
||||||
except Exception:
|
except Exception:
|
||||||
print(f"Error interrogating", file=sys.stderr)
|
print(f"Error interrogating", file=sys.stderr)
|
||||||
|
Loading…
Reference in New Issue
Block a user