This commit is contained in:
Manav Rathi
2024-09-25 12:06:16 +05:30
parent 2c0739e1d1
commit dd5dae2833

View File

@@ -130,6 +130,8 @@ export const clusterFaces = async (
// The resultant clusters.
// TODO-Cluster Later on, instead of starting from a blank slate, this will
// be list of existing clusters we fetch from remote.
// - fetchRemoteClusterFeedback
// [..local, ..remote]
let clusters: FaceCluster[] = [];
// Process the faces in batches, but keep an overlap between batches to
@@ -188,6 +190,10 @@ export const clusterFaces = async (
`Generated ${sortedClusters.length} clusters from ${faces.length} faces (${clusteredFaceCount} clustered ${faces.length - clusteredFaceCount} unclustered) (${timeTakenMs} ms)`,
);
// reconcileClusters
// Save local
// updated map -> remote - Put
return { clusters: sortedClusters, people };
};