This commit is contained in:
Manav Rathi
2024-11-16 12:50:47 +05:30
parent 1aae178179
commit 95905a4187

View File

@@ -310,7 +310,7 @@ const clusterBatchLinear = async (
// Don't add the face back to a cluster it has been rejected from.
if (rejectedClusters) {
const cjx = state.faceIDToClusterIndex.get(fj.faceID);
if (cjx) {
if (cjx !== undefined) {
const cj = ensure(state.clusters[cjx]);
if (rejectedClusters.has(cj.id)) {
continue;