Retain all clusters so that files get marked

This commit is contained in:
Manav Rathi
2024-09-26 08:54:48 +05:30
parent 08765ccd39
commit 7d52b60cd9

View File

@@ -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,
);