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

Fix CLIP Interrogator and disable ranks for it

parent 8aaadf56
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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)