Skip to content

armgit / ente

Public Imported from GitHub
0

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

Retain all clusters so that files get marked

Manav Rathi7d52b60cd9b4
diff --git a/web/packages/new/photos/services/ml/cluster.ts b/web/packages/new/photos/services/ml/cluster.ts
index 12a8f89715..ed848f4d24 100644
--- a/web/packages/new/photos/services/ml/cluster.ts
+++ b/web/packages/new/photos/services/ml/cluster.ts
@@ -172,11 +172,8 @@ export const clusterFaces = async (
);
}
- // Prune clusters that are smaller than the threshold.
- const validClusters = clusters.filter((cs) => cs.faces.length > 2);
-
// Sort clusters by the number of faces in them.
- const sortedClusters = validClusters.sort(
+ const sortedClusters = clusters.sort(
(a, b) => b.faces.length - a.faces.length,
);