Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Tune the threshold for MobileCLIP

Manav Rathi5bbc2615e432
diff --git a/web/packages/new/photos/services/ml/clip.ts b/web/packages/new/photos/services/ml/clip.ts
index 4c19e0395b..e0d1211fbe 100644
--- a/web/packages/new/photos/services/ml/clip.ts
+++ b/web/packages/new/photos/services/ml/clip.ts
@@ -190,5 +190,5 @@ export const clipMatches = async (
// This code is on the hot path, so these optimizations help.
[fileID, dotProduct(embedding, textEmbedding)] as const,
);
- return new Map(items.filter(([, score]) => score >= 0.23));
+ return new Map(items.filter(([, score]) => score >= 0.2));
};