Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix order

Manav Rathi7f10af4d587c
diff --git a/web/packages/new/photos/services/ml/people.ts b/web/packages/new/photos/services/ml/people.ts
index caa70567bd..f5995987ea 100644
--- a/web/packages/new/photos/services/ml/people.ts
+++ b/web/packages/new/photos/services/ml/people.ts
@@ -408,9 +408,6 @@ export const _suggestionsAndChoicesForPerson = async (
// Ignore singleton clusters.
if (faces.length < 2) continue;
- // Already part of the person.
- if (personClusterIDs.has(id)) continue;
-
// User has explicitly asked us to ignore this cluster. Add it to the
// list of rejected clusters that we return to the UI for listing out.
if (rejectedClusterIDs.has(id)) {
@@ -418,6 +415,9 @@ export const _suggestionsAndChoicesForPerson = async (
continue;
}
+ // Already part of the person (and not rejected).
+ if (personClusterIDs.has(id)) continue;
+
const sampledOtherEmbeddings = randomSample(faces, 50)
.map((id) => embeddingByFaceID.get(id))
.filter((e) => !!e);