π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Incorporate blur
Manav Rathi72cc188efede
diff --git a/web/apps/photos/src/pages/cluster-debug.tsx b/web/apps/photos/src/pages/cluster-debug.tsxindex 9655976a21..683ce6bec6 100644--- a/web/apps/photos/src/pages/cluster-debug.tsx+++ b/web/apps/photos/src/pages/cluster-debug.tsx@@ -256,7 +256,7 @@ const FaceChip = styled(Box)``;const outlineForCluster = (clusterID: string | undefined) =>- clusterID ? `1px solid oklch(0.7 0.1 ${hForID(clusterID)})` : undefined;+ clusterID ? `1px solid oklch(0.8 0.2 ${hForID(clusterID)})` : undefined;const hForID = (id: string) =>([...id].reduce((s, c) => s + c.charCodeAt(0), 0) % 10) * 36;diff --git a/web/packages/new/photos/services/ml/cluster-new.ts b/web/packages/new/photos/services/ml/cluster-new.tsindex 4cec15a86e..9d5c57b84d 100644--- a/web/packages/new/photos/services/ml/cluster-new.ts+++ b/web/packages/new/photos/services/ml/cluster-new.ts@@ -190,7 +190,7 @@ export const clusterFaces = async (faceIndexes: FaceIndex[]) => {const faceAndNeigbours: FaceNeighbours[] = [];// For each face,- for (const [i, { faceID, embedding }] of faces.entries()) {+ for (const [i, { faceID, blur, embedding }] of faces.entries()) {// If the face is already part of a cluster, then skip it.if (clusterIDForFaceID.get(faceID)) continue;@@ -220,7 +220,8 @@ export const clusterFaces = async (faceIndexes: FaceIndex[]) => {continue;}- if (csim > 0.76 && csim > nnCosineSimilarity) {+ const threshold = blur < 100 || n.blur < 100 ? 0.7 : 0.6;+ if (csim > threshold && csim > nnCosineSimilarity) {nn = n;nnCosineSimilarity = csim;}